0% found this document useful (0 votes)
0 views

Lesson 1. Process and Tasks

The document explains the concepts of processes, threads, and tasks in operating systems. A process is a set of instructions organized in blocks called functions, which can be executed sequentially or concurrently using threads or tasks. It also notes that threads are created with POSIX instructions, while tasks are used in other frameworks.

Uploaded by

cesar ruiz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Lesson 1. Process and Tasks

The document explains the concepts of processes, threads, and tasks in operating systems. A process is a set of instructions organized in blocks called functions, which can be executed sequentially or concurrently using threads or tasks. It also notes that threads are created with POSIX instructions, while tasks are used in other frameworks.

Uploaded by

cesar ruiz
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Process vs threads vs Task

Process: It’s a set of instructions that will be executed to get


something in the operating system.
• T h e c o d e i n s i d e a p r o c e s s i s o r g a ni s e d i n b l o c k s o f i n s t r u c ti o ns . T h e s e b l o c k s
a r e u s u a l l y c a l l e d F u n c ti o n s a n d c a n b e e x e c u ted i n d i f f e r ent w ay s :

• Classical form: sequentially


• Concurrently: - Threads or Task.

First app
Real Time Linux - Eclipse

Classical form: Sequentially Concurrent form: Threads and Tasks

main
Function call Function call Function call

main
Function call Function call Function call Function call Function call

Function call
Task and Threads

When we work with POSIX instructions, we create threads.

In other frameworks, we create tasks.

You might also like