Practice mode Operating Systems

Compared with creating a new process, why is creating a thread generally cheaper?

Correct answer C. A thread shares its process's address space and resources, so far less must be allocated

Explanation

A new process needs its own address space, page tables and resource records, while a new thread reuses the process's memory and open files and needs only a stack, registers and a small control block. Switching between threads of the same process is also cheaper because the memory map stays the same. Threads still need stacks and are still scheduled.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.