dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: what is the difference b multitasking and multithreading ?

  1. #1
    Join Date
    Oct 2017
    Location
    Kolkata,India
    Posts
    1

    what is the difference b multitasking and multithreading ?

    Disscus

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,195

    Re: what isthe difference b multitaking and multithreading ?

    It was already discussed a lot since a long time before...
    https://www.google.ch/search?q=multi...hrome&ie=UTF-8
    Multithreading means in any single process, multiple threads is allowed and again, can run simultaneously. Multitasking is sharing of computing resources(CPU, memory, devices, etc.) among processes, while multithreading is sharing of computing resources among threads of a single process.
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2017
    Posts
    38

    Re: what isthe difference b multitaking and multithreading ?

    In multitasking, several programs are executed concurrently e.g. Java compiler and a Java IDE like Netbeans or Eclipse, while in multi-threading multiple threads execute either same or different part of program multiple times at the same time .

  4. #4
    Join Date
    Apr 2017
    Posts
    11

    Re: what isthe difference b multitaking and multithreading ?

    Multitasking means several programs are executed concurrently and multi threading means several threads execute at the same time..

  5. #5
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,366

    Re: what isthe difference b multitaking and multithreading ?

    Multi-tasking is the sharing of computing resources (CPU, memory, devices, etc.) among processes, whilst multi-threading is the sharing of computing resources among threads of a single process. This sharing may or may not be concurrent - depending upon number of physical processors etc. Eg. if there are 4 physical processors then there can be 4 threads concurrently executing; if there is only 1 physical processor then there can be only 1 thread executing at any one time.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.8.1)

  6. #6
    Join Date
    Jan 2018
    Posts
    15

    Re: what isthe difference b multitaking and multithreading ?

    The title fooled me! I was asking "what is Multitaking?" turn out it's Multitasking, which means having multiple tasks, programs, processes running at the same time. While Multithreading is a model for a single process can have multiple code.

  7. #7
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,366

    Re: what isthe difference b multitaking and multithreading ?

    Quote Originally Posted by LinckeU View Post
    The title fooled me! I was asking "what is Multitaking?" turn out it's Multitasking, which means having multiple tasks, programs, processes running at the same time. While Multithreading is a model for a single process can have multiple code.
    Yeah. I've corrected the title.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.8.1)

  8. #8
    Join Date
    Feb 2018
    Posts
    2

    Re: what isthe difference b multitaking and multithreading ?

    In multitasking the basic thing is that you're running multiple "programs" simultaneously and by simultaneously I mean using time sharing or any similar algorithm where you may or may not use multiple processors.
    On the other hand in multithreading you run several tasks of the same program simultaneously, using the same algorithms as that of multitasking which may or may not use multiple processors.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)