permaculture playing cards
The moose likes Threads and Synchronization and the fly likes Running scheduler through thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Running scheduler through thread" Watch "Running scheduler through thread" New topic

Running scheduler through thread

Amitav Choudhury

Joined: Dec 27, 2011
Posts: 1
We are using one demon thread and from my main thread through scheduler we are running
m1, m2 and m3 threads. When m1 thread is running the other two threads are in waiting state.
There is also max number of try for each thread. The scheduler is scheduled driven
And as well as event driven. In scheduled driven sometimes we are facing that before completion
of one thread the new scheduler is starting and one more scenario is some time in scheduled
Timing some modules are running and one or even two modules are skipped as all these
Things are logged so we are missing logs, so we don't have any information about other two threads
So can someone please suggest me how to handle this. Is there any alternative for thread or any
Suggestion to handle threads in a better way.

thanks in advance.
Andrew Moko
Ranch Hand

Joined: Dec 16, 2011
Posts: 55
Code is worth a 1000 words
Henry Wong

Joined: Sep 28, 2004
Posts: 20534

Agreed. Some of it may be caused by the OP using his own terminology. Not sure. Regardless, something, could be code examples, could be an elaboration, is needed. The question / request is just too confusing.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Running scheduler through thread
jQuery in Action, 3rd edition