2.1 Computational thinking Flashcards
What is meant by the term ‘abstraction’ (2)
Removal of unnecessary detail…
… to allow programmers to focus on key features of the problem…
…simplifies a complex problem
Give three benefits of using abstraction when writing a program
Reduces programming time
Reduces complexity of code
Reduces amount of computational power
Make the problem easier to solve
What is thinking ahead
- Recognise the required input and output
- preconditions
- caching
- reusable program components
What is meant by ‘concurrent processing’ (2)
Processes happen at the same time.
One process can start before another one finishes.
Each processes is given a slice of processor time.
Is concurrent processing same as parallel processing?
No.
Concurrent processing is when tasks are given a slices of processor time, to give the illusion that tasks are being performed simultaneously. - in reality they are executed sequentially.
Parallel processing is when multiple processors are used to complete more than one task simultaneously.
Benefits of concurrent processing (2/3)
More efficient processor use
Tasks requiring preconditions can wait and then resume execution
User is able to interact with the computer while other tasks are running
Drawbacks of concurrent processing
Can take longer to complete when large numbers of users or tasks are involved.
Overhead
Not all tasks are suited to being broken up and performed concurrently.