[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [computer-go] Event-driven programming



On Thursday, January 15, 2004, at 11:03  PM, Peter Drake wrote:

Are the messages:

a) Sent to specific a worker ("Processor B / Object 37, read this ladder!"),
For us a worker is generic and can do whatever is needed at the time.
The way we do it is closest to: 1) request worker or workers; 2) assign task to worker(s); 3) wait for result(s);

b) Sent out as requests for a specific type of worker ("Someone read this ladder!") with a separate system finding available workers, or
c) Sent out as events ("This point just changed color!"), with any listeners responding to the event?

I'm thinking of c.
There are a number of RTOS that supply the functionality of allowing threads to register to be informed of specific events. QNX does this.

Cheers,
David

_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go