A
anoosh
Hi all
I'm new to java, and want to write a program.
The aim is to create a Supervisor class.This class Supervises the
creation of a thread(repeatedly in a special time in background while
this class is running) and insert the created thread in a thread
pool,and then selecets a one of these threads and also assigns the
selected thread to critical environment.
The thread consists some field,but the most important field is request
field.This field records the last time that this thread send a request
signal to the critical environment for enterence. I mean each of these
thread which stored in the pool must send this request randomly to the
critical environment and record it.
Now would you please write some skeleton of these two
classes(Supervisor and thread) for me?
I'm new to java, and want to write a program.
The aim is to create a Supervisor class.This class Supervises the
creation of a thread(repeatedly in a special time in background while
this class is running) and insert the created thread in a thread
pool,and then selecets a one of these threads and also assigns the
selected thread to critical environment.
The thread consists some field,but the most important field is request
field.This field records the last time that this thread send a request
signal to the critical environment for enterence. I mean each of these
thread which stored in the pool must send this request randomly to the
critical environment and record it.
Now would you please write some skeleton of these two
classes(Supervisor and thread) for me?