What is the difference between lightweight process and thread?

前端 未结 8 1306
醉话见心
醉话见心 2021-02-01 19:32

I found an answer to the question here. But I don\'t understand some ideas in the answer. For instance, lightweight process is said to share its logical address space with other

8条回答
  •  粉色の甜心
    2021-02-01 19:36

    A process contains one or more threads in it and a thread can do anything a process can do. Also threads within a process share the same address space because of which cost of communication between threads is low as it is using the same code section, data section and OS resources, so these all features of thread makes it a "lightweight process".

提交回复
热议问题