Child process VS Thread
Hi, What is the advantages and disadvantages of child process and thread/
rocesses Vs Threads
In many ways threads operate in the same way as that of processes. Some of the similarities and differences are:
Similarities
Like processes threads share CPU and only one thread active (running) at a time.
Like processes, threads within a processes, threads within a processes execute sequentially.
Like processes, thread can create children.
And like process, if one thread is blocked, another thread can run.
Differences
Unlike processes, threads are not independent of one another.
Unlike processes, all threads can access every address in the task .
Unlike processes, thread are designed to assist one other. Note that processes might or might not assist one another because processes may originate from different users.
Following are some reasons why we use threads in designing operating systems.
Child process VS Thread Hi, What is the advantages and disadvantages of child process and thread/