Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Craig Daniels   on Oct 19 In Java Category.

  
Question Answered By: Canan Kaya   on Oct 19

Your program is obeying thread  rule
processor executes one instrution at a time
it runs the program and now it depends upon OS how much clock cycles it give to
a program ( thread)

Try increasing the loop

you will see output  like

some "x" then some "test" then some "x" then some "test" ..............

Share: 

 

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

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


Tagged: