First time here? Checkout the FAQ!
0 votes

I am getting confused with the implementation of threads.....

as we know if some task is assigned to process it can divide the task into subprocess and implement it efficiently...if it is so , why there is need of the concept multithreading? plz explain it clearly if possible

asked in Operating System by Active (1.2k points)   | 38 views

1 Answer

0 votes
Threads are known as Lightweight processes. The CPU switches rapidly back and forth among the threads giving illusion that the threads are running in parallel.


Multithreading is a type of execution model that allows multiple threads to exist within the context of a process such that they execute independently but share their process resources. A thread maintains a list of information relevant to its execution including the priority schedule, exception handlers, a set of CPU registers, and stack state in the address space of its hosting process.
answered by Active (1.8k points)  
well if u see the concept of child process they also work independently sharing their parent resources....the point of switching is convincing...

Top Users Sep 2017
  1. Habibkhan

    6960 Points

  2. Warrior

    2416 Points

  3. Arjun

    2358 Points

  4. rishu_darkshadow

    2136 Points

  5. A_i_$_h

    2004 Points

  6. nikunj

    1980 Points

  7. manu00x

    1750 Points

  8. makhdoom ghaya

    1750 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points

26,059 questions
33,664 answers
31,078 users