what is the difference between multitasking and
multithreading?
Answer Posted / pushpendra singh gorwa
multitasking :
1. Multiple tasks, also known as processes, share common
processing resources.
2. You can simultaneously run multiple applications.
3. Heavyweight process
4. Every process have different address space so context
switch or intercommunication between processes is much
expensive.
Multithreading :
1. Subdivide specific operations within a single application
into individual threads.
2. Each of the threads can run in parallel. OS divides
processing time not only among different applications, but
also among each thread within an application.
3. Light weight process
4. Threads for the same application share same address space
so context switch or intercommunication between threads is
less expensive.
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What is the history of java?
Write a program to check for a prime number in java?
What are the differences between forwarding () method and sendredirect() methods?
Name four container classes.
Which class should you use to obtain design information about an object in java programming?
Is list thread safe in java?
What is a cup of java?
What are the steps in the jdbc connection?
Can we cast any other type to boolean type with type casting?
Is 0 an irrational number?
What is the difference between method and means?
Is java call by value?
How do you declare a variable?
When throws keyword is used?
Difference between string, string builder, and string buffer?