A)
->weight is in teams of overhead involved in context switching. Thread is executed in only one process, is have less overhead to move context switch from one part to another part with in the same process.
Garbage collection:
->it is a sub thread in the main thread.
->it is a sub thread in the main thread.
->here when main flow is stopped automatically implicitly garbage collector is also stopped. So the garbage collector is a classic example for daemon thread.
Comments
Post a Comment