The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
61 views

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.9k points) | 61 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 Loyal (3.1k points)
well if u see the concept of child process they also work independently sharing their parent resources....the point of switching is convincing...


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

28,832 questions
36,676 answers
90,582 comments
34,638 users