AddressSpace library v1.0 beta

Class Sync

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Sync

public class Sync
extends java.lang.Thread

This class is a thread that keeps in sync a page or a LruQueue with the disk image.
At timed intervals the sync method of all the pages is called.

Version:
1.0 June 05 2000
Author:
Dario Maggiorini (dario@dsi.unimi.it)

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Sync(LruQueue q, int st)
          Create a new syncher connected to an LruQueue.
Sync(SwappingPage p, int st)
          Create a new syncher connected to a SwappingPage.
 
Method Summary
 void close()
          Close this tread.
 void run()
          Run the thread while not instructed to die.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sync

public Sync(SwappingPage p,
            int st)
Create a new syncher connected to a SwappingPage.
Parameters:
p - the page to be synched.
st - the delay between syncs.

Sync

public Sync(LruQueue q,
            int st)
Create a new syncher connected to an LruQueue.
Parameters:
q - the queue to be synched.
st - the delay between syncs.
Method Detail

close

public void close()
Close this tread.

run

public void run()
Run the thread while not instructed to die.
Overrides:
run in class java.lang.Thread

Help is irrilevant
You will be assimilated!

v1.0 beta by Dario Maggiorini