进程间通信 需要 解决的问题

来源:互联网 发布:淘宝助理登陆失败 编辑:程序博客网 时间:2024/04/28 00:43

There are three issues here.

 

The first was alluded to above: how one process can pass information to another. 如何在进程间传递消息?

 

The second has to do with making sure two or more processes do not get into each other's way when engaging in critical activities (suppose two processes each try to grab the last 1 MB of memory). 如何处理竞争?

 

The third concerns proper sequencing when dependencies are present: if process A produces data and process B prints it, B has to wait until A has produced some data before starting to print.  如何协同