2. 1. 5 Thinking Concurrently Flashcards
1
Q
Concurrent thinking
A
- Process of completing more than one task at any given time
- Concurrent processing means different tasks given slices of processor time, gives illusion that tasks being performed simultaneously
- Concurrent thinking, mindset allows you to spot patterns and parts of problem where concurrency can be applied
- Imagine you were tasked with recording how many cars go by, more specifically their number plates and colours
- Thinking concurrently, you would get the number plate and colour of one car before moving on to the next
- When determining what parts of problem can be solved at the same time, must assess what parts are related
- Related sections often can be solved simultaneously, can therefore be dealt with concurrently
2
Q
Concurrent processing
A
- Difference between concurrent processing and thinking, processing uses a computer processer, thinking uses our brain rather than a computer system
- Parallel processing is when multiple processors used to complete one task simultaneously
- Concurrent processing, each task given slice of processor time to make it appear that tasks are being complete simultaneously, in reality they are executed sequentially
3
Q
Benefits of Concurrent processing
A
- Number of tasks completed in a given time increased
- Less time wasted on waiting for input or user interaction, other tasks can be completed during this time
4
Q
Drawbacks of Concurrent processing
A
- Takes longer to complete when large numbers of users or tasks are involved, as processes cannot be completed at once
- Overhead in coordinating and switching between processes, reduces program output
- Not all tasks suited to being broken up and performed concurrently