• Post Reply Bookmark Topic Watch Topic
  • New Topic

Green Thread and its importance  RSS feed

 
Dhanu Dhanu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CAN ANYONE TELL ME THE THE CONCEPT OF "Green Thread" and its importance. If possible, give me the URL to have a clear idea. Thanx in advance
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with Google "green thread"? The first hits gave exactly what you wanted.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Green threads are those threads which are scheduled by JVM iteself not by operating system.

On windows NT plateform, threads are scheduled by operating system itself, called native scheduling.

whereas, on unix plateform threads are scheduled by green thread scheduling.

On google you can find lots of good link...

Green Threads


Naseem
[ June 20, 2006: Message edited by: Naseem Khan ]
 
Dhanu Dhanu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MANY THANX. NOW AM ABLE TO KNOW THE DIFFERENCE BETN A GREEN THREAD AND A NATIVE THREAD. MANY THANX. TAKE CARE
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Dhanu Dhanu-

Welcome to JavaRanch.

On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it; specifically, a first name and a last name are required. Please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.

And please, don't shout at us in all uppercase letters. It's considered quite impolite all over the 'net.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, don't believe everything you read here. The Green threads library is not used by any modern UNIX JVMs; support was largely dropped in JDK 1.4, over 4 years ago.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Friedman for updating me. Actually I read that in one java thread book.

Thanks & Regards

Naseem
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!