SLR 22/ Thinking Concurrently Flashcards
1
Q
Advantages of Concurrent Processing
A
Reactive programming,
User is able to interact with applications while other tasks are running.
Availability of services,
Long-running tasks do not need to delay short-running ones.
Parallelism,Complex programs can make better use of multiple resources in multi-core processor systems.
2
Q
Disadvantages of Concurrent Processing
A
Safety.“Nothing bad ever happens.”Concurrent tasks should not be allowed to corrupt the consistent state of a program.”
Resource consumption,
Threads can be expensive.
There is an overhead associated with scheduling, switching threads and synchronizing them.