Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Simple difference multi_threading_tasking


Published on

computer related topic

  • Be the first to comment

  • Be the first to like this

Simple difference multi_threading_tasking

  1. 1. Difference between Multithreading and Multitasking for ProgrammersPage 1 of 4
  2. 2. Page 2 of 4
  3. 3. Why Dataflow Programming Languages are Ideal for Programming ParallelHardware (according to ni company)Dataflow programming models contrast to the control flow model (implemented in languages such as C).Because of the top-down sequential programming approach, applications written in C have inherent limitations whenmapping to parallel hardware. In contrast, with a dataflow model, nodes on a block diagram are connected to one another toexpress the logical execution flow, and they can be used to easily express parallelism. When a block diagram node receivesall required inputs, it produces output data and passes that data to the next node in the dataflow path. The movement of datathrough the nodes determines the execution order of the functions on the block diagram.SOURCE: document is part of theMulticore Programming Fundamentals Whitepaper SeriesPage 3 of 4
  4. 4. “process” is an instance of a computer program that is being executed. While a program itself is just apassive collection of instructions, a process is something which actually executes those instructions.Several processes can be associated with the same program - each would execute independently.Modern computer systems allow multiple processes to be loaded into memory at the same time and,through time-sharing (or multitasking), give an appearance that they are being executed at the sametime even if there is just one processor.In modern operating systems, each process can have several threads of execution (or threads for short).Multiple threads share the same program code, operating system resources (such as memory and fileaccess) and operating system permissions (for file access as the process they belong to). A process thathas only one thread is referred to as a single-threaded process, while a process with multiple threads isreferred to as a multi-threaded process. Multi-threaded processes have the advantage that they canperform several tasks concurrently without the extra overhead needed to create a new process andhandle synchronized communication between these processes.Threads can be thought of as lightweight processes, offering many of the advantages of processeswithout the communication requirements that separate processes require. Threads provide a means todivide the main flow of control into multiple, concurrently executing flows of control. Application / Program Task Proces Threa Series of Related InstructionsPage 4 of 4