Revise Computingrevisecomputing.co.uk
Free student revisionSee questionsFor schoolsSchool enquiry
Free revisionSee questionsFor schoolsSchool enquiry
Knowledge/A Level/H446/02 Algorithms and programming/Thinking Concurrently/Outline the benefits and trade offs…

Outline the benefits and trade offs of concurrent processing in a particular situation

Outline the benefits and trade offs that might result from concurrent processing in a particular situation.

2.1.5 Thinking Concurrently

Thinking Concurrently — Note 2 of 2

Candidates need to understand the benefits and trade offs of concurrent processing and apply these to a given scenario, including why it would be used and what problems might arise.

What you need to know

Concurrent processing can make programs faster and more responsive, but it adds complexity and is not always possible or worthwhile. You need to weigh up the benefits and trade-offs for a given scenario.

What to know

  • Benefits: tasks finish sooner overall (greater throughput); the program stays responsive while long tasks run in the background; better use of multiple cores.
  • Trade-offs: some tasks cannot be split because of dependencies; coordinating and combining results adds overhead; programs are harder to design, test and debug.

Key terms

Race condition

Two concurrent processes access shared data at the same time, so the result depends on the timing and may be incorrect.

Deadlock

Two or more processes each wait for a resource held by another, so none can continue.

Starvation

A process never gets access to a resource it needs because others are always given priority.

Exam technique

  • Tip:Apply your points to the scenario, explaining which tasks benefit and what problems might arise.
← Previous noteDetermine the parts of a problem that can be tackled at the same time2.1.5 Thinking ConcurrentlyNext topic →Programming constructs: sequence, iteration, branching2.2.1 Programming Techniques

Back to Thinking Concurrently

Thinking Concurrently

Note 2 of 2

  1. 1Determine the parts of a problem that can be tackled at the same time
  2. 2Outline the benefits and trade offs of concurrent processing in a particular situation
Topic overview