Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] Manager - Worker thread question
- From: cswanson@xxxxxxxxxx (Carl Swanson)
- Subject: [Advanced-java] Manager - Worker thread question
- Date: Mon, 14 Jan 2002 11:33:21 -0600
I need to set up one thread, a manager thread, that sets up sub threads with worker classes that do work, with IDs attached to each one. Then, when work comes in for a certain ID, the manager finds the one it wants, then the work is called against the right thread. Many calls need to com in and work simultaneously. (Kind of like a manager calling an employee when work for them comes in) I can spawn worker threads, but then how do I get them to wait until called, and then call the correct one? Wait/notify doesn't work that way as far as I can tell. Do I simpy call a method on the object in the different thread? Do I set the worker thread to wait and then the call wakes it up? Any tips would be much appreciated. Thanks, Carl cswanson@xxxxxxxxxx
- Follow-Ups:
- [Advanced-java] Manager - Worker thread question
- From: friedman_hill ernest j
- [Advanced-java] Manager - Worker thread question
- Prev by Date: [Advanced-java] Indian Armed Forces
- Next by Date: [Advanced-java] Manager - Worker thread question
- Previous by thread: [Advanced-java] Indian Armed Forces
- Next by thread: [Advanced-java] Manager - Worker thread question
- Index(es):