HI,
I want to know what is the difference between multithreading and multiprocessing?
HI,
I want to know what is the difference between multithreading and multiprocessing?
Multiprocessing : Several jobs can run at the same time.
Multi-threading : Same job can be broken logically and executed simultaneously and the results are combined at the end of processing
The operating system can allow hundreds of threads to be active, regardless of the number of processors. It is up to the operating system to share the processor time among various threads.
Multiprocessing means that you are using a computer that has multiple processors (CPUs). Not all operating systems support multiple processors (Windows NT, 2000, and XP support multiple processors, but Windows 95 and 98 do not).
Each VI in LabVIEW can be configured for a preferred execution system and priority. By default, LabVIEW allocates one thread per processor per execution system/priority pair. For example, VIs running in the standard execution system with normal priority will by default run in one thread on a single processor system, and in two threads on a dual processor system.
Hi pals,
Multithreading is the ability to perform different tasks of a process simultaneously.This is achieved by using a seperate thread for each task.Though there are several threads in a process, at a time the processor will handle only a single thread.Though it appears to be concurrent processing to the end user, internally only single thread will be running.Processor is able to multitask by switching between the threads.
When it comes to Multiprocessing there will be more than one processor and each thread will be handled by a different processor.Thus leading to concurrent processing of tasks.
Thanks,
Multi-threading refers to an application with multiple threads running within a process, while multi-processing refers to an application organised across multiple OS-level processes.
A thread is a stream of instructions within a process. Each thread has its own instruction pointer, set of registers and stack memory. The virtual address space is process specific, or common to all threads within a process. So, data on the heap can be readily accessed by all threads, for good or ill.
Multi-threading is a more "light weight" form of concurrency: there is less context per thread than per process. As a result thread lifetime, context switching and synchronisation costs are lower. The shared address space (noted above) means data sharing requires no extra work.
Multi-processing has the opposite benefits. Since processes are insulated from each other by the OS, an error in one process cannot bring down another process. Contrast this with multi-threading, in which an error in one thread can bring down all the threads in the process. Further, individual processes may run as different users and have different permissions.
hay thnx sanitos ur post related to multithreading and multiprocessing really helped me......!!!!!! u rock......
what is ur major....!!!!!
plzzzz help me regarding.............difference between multithreading and multiprocessing
What help do you need in the difference between multithreading and multiprocessing? All information is already included in the post made in this thread, check the discussions made on the same to get a brief idea or specify in detail what exactly your querie is?
Multi threading is very helpful to perform different tasks of the process.It is achieved by using so individual thread for every task.In the multiprocessing there are so many threads in one processor.Each and every thread handelled by the different processor.
Last edited by gems; 27-04-2011 at 11:32 PM.
Bookmarks