Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Harley Evans   on Jun 13 In Java Category.

  
Question Answered By: Tyrone Sanchez   on Jun 13

This is not about Java, It ' s about your operating system. Your OS has
an process scheduling algorithm that share cpu resource between processes.
So os to os your coding must be change. The simple method is to suspend
your threads  for a while (just 1 milisecond is enough). By this why the active
thread, that we suspend, will go to the end of the cpu request queue and other
threads on queue will
use cpu resource. this works on all platforms. if u dont, your thread  will suck
all the
processing power for itself to the end of its execution.
On unix based platforms u can prefer to use join method for resource sharing.
(not on
m$ platform.maybe 2003 server which is said to be unix kernel based and sco
powered :)
amanin olabilirmi acaba! )whatever.....

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on java thread programming Or get search suggestion and latest updates.


Tagged: