In: Computer Science
Discuss the differences between processes and threads. Include discussion of the limitations of both multiple processes and multiple threads, and give examples as to when you might want to use them.
process are independent each other but coming to threads these are not independent it contain subset of process
for example if 3 programs are execute one program is related to text document and another process is related to typing and 3rd one is listening music so there three are independent not dependent on each other but coming to threads
it can be dependent and subsets of processes example while we type the data throught keyboard then automatically spell checking is done two process are execute simantaneously.and another example we can watch the movie with the audio and subtitles like all process are done simantanously these can be done through threads only
process is proceed until it completes one are more process is run they must be proceed until the process is complete but coming to threds some certian time some piece of process executed another piece of tie another process is executed like kind of process in done