Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

Real Time Thread

Hi,
 i am designing a multithreaded java application which requires that all the threads in the system access the resource in a cyclic order. Ofcourse i cannot use Java Thread class to do that because under race condition the OS will give any thread the access to that resource ....

regards ...
rupak kumar ....
0
rupak_kumar
Asked:
rupak_kumar
  • 2
1 Solution
 
rupak_kumarAuthor Commented:
I am looking for a framework which allows any process to be scheduled like that.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I guess if you use Thread with no sleep () or wait () or notify () and no different priorities, then all of them will get access serially (I mean - in a cyclic order as you want).

Mayank.
0
 
CleanupPingCommented:
rupak_kumar:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Recommendation: Accept mayankeagle's comment as answer.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now