Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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
add comment

migrated from stackoverflow.com Jul 29 '11 at 12:49

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

4 Answers

up vote 3 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
1  
@Thorbjørn Lucky you :) –  chibacity Jul 29 '11 at 13:59
add comment

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
add comment

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.