edu.unima.ky.parallel
Class ExSyncChannelProd

java.lang.Object
  |
  +--edu.unima.ky.parallel.ExSyncChannelProd
All Implemented Interfaces:
java.lang.Runnable

class ExSyncChannelProd
extends java.lang.Object
implements java.lang.Runnable

Producer part


Field Summary
(package private)  edu.unima.ky.parallel.SyncChannel chan
           
(package private)  int id
           
(package private)  int max
           
(package private)  java.io.PrintWriter out
           
 
Constructor Summary
ExSyncChannelProd(edu.unima.ky.parallel.SyncChannel c, int i, int m, java.io.PrintWriter o)
          Constructs a producer unit
 
Method Summary
(package private) static void doSomeWork(double t)
           
 void run()
          Performs the producer's work
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chan

edu.unima.ky.parallel.SyncChannel chan

id

int id

max

int max

out

java.io.PrintWriter out
Constructor Detail

ExSyncChannelProd

public ExSyncChannelProd(edu.unima.ky.parallel.SyncChannel c,
                         int i,
                         int m,
                         java.io.PrintWriter o)
Constructs a producer unit

Method Detail

run

public void run()
Performs the producer's work

Specified by:
run in interface java.lang.Runnable

doSomeWork

static void doSomeWork(double t)