Ask Question
14 August, 21:30

There are two main advantages to using multiple threads in a process: 1) Less work involved in creating a new thread rather than a new process 2) Communication among threads within the same process is simplified. Briefly explain how threads give these advantages. Is it also true to say that context switching between two threads in the same process involves less work than switching to a thread in a different process?

+1
Answers (1)
  1. 14 August, 23:28
    0
    Thread is a light weight where as Process is a heavy weight in nature

    Explanation:

    A process can use to accomplish complex tasks which involves utilization of more system resources. Thread is part of process which is used to accomplish some smaller task. Thread is light weight and involves utilization of less no of resources.

    A process can have more than one thread for execution. we can execute these threads in a process parallelly. This is known as Multi Threading.

    There are Mainly 2 Advantages to using multi threads in a process

    Less work Involved in creating New Thread rather than a New process: this is because all threads in a process use same address space so it is very easy to communicate and operate these threads in a process. Each process is used separate address space so if we want to create another process then it involves utilization of more resource so more overhead

    Communication among threads in same process also simplified as these are using same address space
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “There are two main advantages to using multiple threads in a process: 1) Less work involved in creating a new thread rather than a new ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers