Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

asynchronous environment with respect to threads

 
Komal Amaresh
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,

I'am reading multithreading and am unable to understand this point.it says
"java uses threads to enable the environment to be asynchronous".
this is quite contrary to what i basically understood. well the other term for threads is concurrency. any program is asynchronous. where each part of the code oocurs at different times or in a sequence. the only advantage is memory allocation and the context switch to promote efficiency. what is the point they are trying to make by that sentence. can you please explain.

thanks in advance.

regards,
komal

 
Henry Wong
author
Sheriff
Posts: 22610
111
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I think that you may be mixing terminology. I believe, when the term "asynchronous" is used here, it is referring to asynchronous behavior -- such as asynchronous I/O. I don't think it is referring to the opposite of thread synchronization.

Henry
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please quote your sources
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!