Simple difference multi_threading_tasking

218 views
198 views

Published on

computer related topic

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
218
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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: www.ni.com/multicoreThis 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

×