【RTS笔记2】Concurrent Programming
Concurrent Programming:
Define
Concurrent programming techniques are those used to deal with parallelism in computing tasks. The correct logical behaviour of a concurrent program depends on correctly coordinating tasks to meet the program’s objectives.
Concurrent 需要关注两点:
- Synchronisation 同步:to satisfy constraints on the ordering of tasks.
- Communication 沟通: for passing information from one task to another
Concurrency is not parallelism 并发不是平行!
Concurrent execution can take three different forms:
- Multiprogramming: 单个处理器交错运行任务the processes multiplex their execution on a single processor.
- Multiprocessing:多个处理器共享内存