Results 1 to 9 of 9

Thread: What is the difference between multithreading and multiprocessing?

  1. #1
    Join Date
    May 2008
    Posts
    63

    What is the difference between multithreading and multiprocessing?

    HI,

    I want to know what is the difference between multithreading and multiprocessing?

  2. #2
    Join Date
    May 2008
    Posts
    40

    Re: 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

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is the difference between multithreading and multiprocessing?

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is the difference between multithreading and multiprocessing?

    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,

  5. #5
    Join Date
    May 2008
    Posts
    26

    Re: What is the difference between multithreading and multiprocessing?

    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.

  6. #6
    ahmed arid Guest

    Re: What is the difference between multithreading and multiprocessing?

    hay thnx sanitos ur post related to multithreading and multiprocessing really helped me......!!!!!! u rock......
    what is ur major....!!!!!

  7. #7
    Join Date
    Apr 2011
    Posts
    1

    Re: What is the difference between multithreading and multiprocessing?

    plzzzz help me regarding.............difference between multithreading and multiprocessing

  8. #8
    Join Date
    Jan 2006
    Posts
    605

    Re: What is the difference between multithreading and multiprocessing?

    Quote Originally Posted by Puneet.Java View Post
    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?

    Quote Originally Posted by kelfro View Post
    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,

  9. #9
    gems Guest

    Re: What is the difference between multithreading and multiprocessing?

    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.

Similar Threads

  1. Multithreading in intel IPP
    By Assasin boy in forum Motherboard Processor & RAM
    Replies: 9
    Last Post: 26-09-2010, 03:25 AM
  2. Multithreading and ArrayList
    By Logan 2 in forum Software Development
    Replies: 5
    Last Post: 09-02-2010, 05:16 AM
  3. run method of MultiThreading
    By beelow in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 10:18 AM
  4. How to achieve Multithreading in Java
    By LasitMalinga in forum Software Development
    Replies: 3
    Last Post: 02-05-2009, 01:09 PM
  5. forks and multithreading
    By invincibledj20 in forum Software Development
    Replies: 0
    Last Post: 12-11-2008, 07:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,283,312.48964 seconds with 17 queries