- 论坛徽章:
- 0
|
我的鸟语水平还有待提高,在APUE中-ver2中看到下面的话,有些不解
Page 436
12.9 Threads and fork
Inside the child process,only one thread exist.It is made from a copy of the thread that called fork in the parent.If the threads in the parent process hold any locks,the locks will also be held in the child process.The problem is that the child process doesn't contain copies of the threads holding the locks,so there is no way for the child to know which locks are held and need to be unlocked.
红色的部分你做了一种假设,并推出一个结果。
蓝色的部分是对现实情况的描述,
紫色的部分是由蓝色部分推出的一种情况。
如果蓝色的部分是描述的事实,那粉红色的部分的假设有什么作用? |
|