what is the difference between multitasking and
multithreading?
Answer Posted / levin jack
MULTITASKING MULTI THREADING
************ ***************
1.multi threaded program In a multitasking environment
contains 2
or more threads 2 or more processes will run
running concurrently. concurrently.
2.Process are heavyweight Threads are lightweight proces
process that require their &can share same address space
own address space interthread comm is less
expensive than IPC
3.More expensive: Less expensive:
runs in diff address space runs in same address space thus
thus context switching or context switching or IPC b/w
IPC b/w process is high. process is low.
4.The operating system is Multi threading is the ability
able to keep track of where of pgm or an OS process to
you are in there task & go manage its use by more than one
from one to the other user at a time & to even manage
without losing information multiple request by the same
user without having to have
. multiple copies of the pgm
running in the computer
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is file in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Can variables be used in java without initialization?
What is static synchronization?
Are arrays primitive data types?
What is difference between classpath and path variables in java?
What is a protected method?
What is the size of arraylist in java?
what is a green thread? : Java thread
What is thread pool? How can we create thread pool in java?
What is anonymous inner class?
What is an interface in java? Explain
What is the scope or life time of instance variables?
What is the major drawback of internal iteration over external iteration?