Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issues on JDK 1.4  RSS feed

 
Omar IRAQI
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello every body,
JDK 1.4 provides non blocking I/O calls in the package java.nio .
So, the execution line of a program, won't be paused waiting for a read or a write (since it is done in a separate thread), and consequently the CPU would never be idle !!!
In this case, one can think that creating threads (aThread.start() etc...) is useless, since one wants to create threads only to make the CPU always busy.
What do you think ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!