Concurrent Processing (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
Concurrent processing definition
Concurrent processing definition
Simultaneous execution of multiple tasks
Concurrent processing purpose
Concurrent processing purpose
Maximise resource utilisation, reduce execution time, improve responsiveness
Hardware leveraged by concurrent processing
Hardware leveraged by concurrent processing
Multi-core processors
Benefit: completion time effect
Benefit: completion time effect
Reduces overall completion time
Benefit: resource utilisation
Benefit: resource utilisation
Distributes tasks across multi-core processors efficiently
Benefit: user experience effect
Benefit: user experience effect
Increases responsiveness
Race conditions definition
Race conditions definition
Two+ tasks access shared resources simultaneously, causing inconsistent results
Deadlocks definition
Deadlocks definition
Two+ tasks wait for each other to release resources
Context switching overhead issue
Context switching overhead issue
System spends time managing tasks instead of executing them
Why concurrent programs hard to debug?
Why concurrent programs hard to debug?
Non-deterministic nature of task execution
Synchronisation tools for shared resources
Synchronisation tools for shared resources
Locks, semaphores, monitors
Risk of overusing concurrency
Risk of overusing concurrency
Adds complexity without significant performance gains
What to minimise in concurrent processing?
What to minimise in concurrent processing?
Context switching by avoiding too many tasks
