-> Difference between process based and thread based multitasking:
1) threads share the same address space where as process doesn't.
2) context switching between threads is usually less expensive than between processes.
3) cost of communication between threads is relatively low.
process-based multitasking is the feature that allows your computer to run two or more programs concurrently.
Process based is much time as comparison as thread based. as well as Thread based application is cost effective. Process based application has its own address space so it take more cost. Alok Gupta. India.
difference b/w thread based and use based testing
threads will start at the same time. For instance, thread a has a wait time of 6 and thread b has a wait time of 3. With multitasking, b is finished in 3 seconds and a is finished in 6. Otherwise, b has to wait until a finishes so b will wait 9 before triggering.
Multithreading:Multithreading is a process of executing multiple threads simultaneously.The concept of threads provides a mechanism to make maximum utilization of CPU.Basically a thread is a light weight process.Both multithreading and multiprocessing are used to achieve multitasking.But multithreaing is more effective than multiprocessing because multithreading share common memory area but multitasking will allocate separate memory area for each and every process.Executing several tasks simultaneously is called multitasking. Multitasking is used for maximum utilization of cpu.Multitasking:Mutitasking is achieved in two ways:process based multitaskingThread based multitaskingfor more details go through this website
"A thread is the smallest unit of execution" single os can have multiple threads running thereby creating a multithreading environment. Each thread has a priority based on which the process is executed.
Any Linux-based operating system that is capable of multitasking. (I.E. doing more than one thing at the same time.)
Advantages: - Priority based premptive scheduling -multitasking -multithreading -better response time -valuable services like senaphore,mailbox,queues etc. Disadvantages: -expensive Advantages: - Priority based premptive scheduling -multitasking -multithreading -better response time -valuable services like senaphore,mailbox,queues etc. Disadvantages: -expensive
Thread Based
Hand sewing is done by using a needle with thread, and joining two fabrics with the thread. Generally, for hand sewing, you would choose a thread size based on what you're sewing. The higher the wt number, the lighter (or finer) the thread is.
acc. to me,multiprogramming is based on system level and multitasking is based on user level.operating system can execute a program or application once at a time.it means the code related to other applications would be stored in operating systems but it will activate when that particular application is activated by user. acc. to me,multiprogramming is based on system level and multitasking is based on user level.operating system can execute a program or application once at a time.it means the code related to other applications would be stored in operating systems but it will activate when that particular application is activated by user. acc. to me,multiprogramming is based on system level and multitasking is based on user level.operating system can execute a program or application once at a time.it means the code related to other applications would be stored in operating systems but it will activate when that particular application is activated by user.
Multitasking and Task switching are entirely different concepts. Multitasking is all about performing multiple tasks at the same time whereas, Task Switching can relate to moving from one task to another based on priority. Task Switching can be very closely associated to humans, as we have been doing it for quite a while now. While performing your daily tasks, you may be interrupted by another authority, which may lead you to switch tasks for a brief period. The disadvantage is you may lose the level of concentration you had earlier in the beginning. 'Multitasking' on the otherhand is associated with machines performing more than one task at a given time.