2.1.5 Thinking Concurrently Flashcards

1
Q

Thinking Concurrently

A

Thinking Concurrently : Trying to solve different parts of a problem at the same time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Thinking Concurrently : Concurrent Processing

A

Concurrent Processing :
- Different instructions processed at the same time
- Each Process given a slice of CPU time
- One process can start before another one finishes.
- Different processes can be executed by different independent processors (cores) in parallel

Advantages :
- More efficient processor use - greater throughput as processor idle for less time.
- Long running tasks don’t delay short running tasks
- Tasks requiring preconditions can wait then resume execution
- User can interact with computer while other tasks running

Disadvantages :
- Overhead in coordinating and switching between processes
- Not all tasks suited to being broken up and performed concurrently - some tasks dependent on other tasks.
- Program increases complexity - has to be designed to have multiple parts processed concurrently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly