• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Threads

 
André Asantos
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
About Threads... Could I use into any Java web project?
 
Nilesh Miskin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a web environment, most of the multithreading is handled by the Container. Once the servlet is loaded, the container forks a new thread to handle a new request.
The important thing we should be talking about is how to avoid ill-effects of concurrent access in a web environment by means of proper design & appropriate synchronization mechanisms wherever applicable.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the spec, we're not supposed to do any "local" thread management--but we do it all the time, often via something like Quartz.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic