What is concurrency and how do you implement it.
What is concurrency ?
Concurrency means multiple computations are happening at the same time. Concurrency is everywhere in modern programming, whether we like it or not: Multiple computers in a network. Multiple applications running on one computer. Multiple processors in a computer.
To simply put it , it is the process where your device example desktop or laptop processes more then 1 program or command at a time.
What are the concurrency types ?
The three main types of concurrent computing are multithreading, asynchrony, and preemptive multitasking. Parallel programming and distributed programming are two basic approaches for achieving concurrency with a piece of software
- Threads are the virtual components or codes, which divides the physical core of a CPU into virtual multiple cores.
- Multithreading is a technique that allows for concurrent (simultaneous) execution of two or more parts of a program for maximum utilization of a CPU.
- In computer programming, asynchronous operation means that a process operates independently of other processes, whereas synchronous operation means that the process runs only as a result of some other process being completed or handed off.
- Preemptive multitasking is a type of multitasking that allows computer programs to share operating systems (OS) and underlying hardware resources.

Comments
Post a Comment