concurrent processing Flashcards
what is concurrent processing
when tasks are given slices of processor time, to give the illusion that tasks are being performed simultaneously,
what is pararrell processing
when multiple processors are used to complete more than one task simultaneously
what is reactive programming
where a user should be able to interact with other applications while other tasks are running in the background
benefit
what is availability of services
the idea that we shouldnt have a long-running task delaying a short-running task
web browsers use this concept all the time
benefit
what is parrellism
where a complex program can make use of multicore and/or multiprocessor systems
benefit
what is controllability
a task requiring preconditions can be suspended and easily resumed later
benefit
what is safety
there is the possibility of currupting the consistant state of the program. this can become difficult when keeping track of many different tasks concurrently
Disadvantage
what is liveness
this is where tasks can suspend and wait for eachother Indefinitely which is known as deadlock.
Disadvantage