Difference between green and native thread


Green threads are created and scheduled by Virtual machine without using OS libraries. 

“Green” was the project code name of the thread project which was developed by the Java, therefore the name of the thread is “Green”. It can not make use of multiprocessor.

On the other hand, Native threads are created and scheduled by Kernel of operating system. It can swap between threads from running thread to non-running thread. All modern OS supports native thread. 

Sr. No.KeyGreen ThreadNative Thread

1

Basic 

Green threads are created and scheduled by Virtual machine without using OS libraries

Native threads are created and scheduled by Kernel of operating system

2

Platform Dependent 

It is platform dependent 

It is platform independent 

3

Multiprocessor 

It can run only on one CPU

It can run on distinct CPUs

4.

       Scheduling 

It can’t adjust scheduling among all the threads 

It can adjust scheduling among all the threads 


Updated on: 21-Jan-2020

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements