Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Simulated threads are known as "green threads" in programming-language-wonk speak. They are compared to "native threads" as provided by the operating system, but is there an analogous colour for native threads, and what is it?

share|improve this question

migrated from Jul 29 '11 at 12:49

This question came from our site for professional and enthusiast programmers.

up vote 4 down vote accepted

User-mode threads can be referred to as "green" threads, whereas kernel-mode threads can be referred to as "red" threads. This terminology is rarely used, but an appreciation of the difference is a good thing to know.

share|improve this answer
What would be the origin of this? – user1249 Jul 29 '11 at 13:29
@Thorbjørn I do not know the exact etymology, it's just distinctions I remember from OS study at Uni. I can say that given the context of my study the terminology is quite old. – chibacity Jul 29 '11 at 13:37
Never heard the term, perhaps I'm too young :) – user1249 Jul 29 '11 at 13:58
@Thorbjørn Lucky you :) – chibacity Jul 29 '11 at 13:59

No, there isn't. The "green" is like in "green peace", not like in "green apple". I guess the opposite might be "smoggy" or any other term denoting non-eco-friendliness.

share|improve this answer

how about "taste" instead of color -- native threads can be "bitter threads" :)

share|improve this answer

I hope that this is not too far afield. Colors do not have 'opposites' they have complements. The complement of green is magenta.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.