You are on page 1of 1

concurrent programming

concurrent - the simultaneous execution of multiple interacting computational tasks

concurrent programming

-Computer programming designed for execution on multiple processors, where more than
one processor is used to execute a program or complex of programs running
simultaneously. It is also used for programming designed for a multitasking environment,
where two or more programs share the same memory while running concurrently.

A concurrent program consists of several sequential programs to be executed in parallel.


Each of the concurrently executing sequential programs is called a process. Process
execution, although concurrent, is usually not independent. Processes may affect each
other's behavior through shared data, shared resources, communication, and
synchronization.

Processes and threads


1. A process is a unit of execution managed at the level of the operating system.
2. Each process has its own address space and no other process can access it.
3. A thread is a sequential flow of control executing within a process.
4. All threads within a process share the same address space, and they the share
memory.

thread of execution is the smallest unit of processing that can be scheduled by an


operating system. It generally results from a fork of a computer program into two or
more concurrently running tasks.

You might also like