close circuit variable pump 闭式变量柱塞泵
One way would be to increment a variable every time a thread is created, and decrement it whenever a thread terminates. When it reaches zero again, close the whole process.
一种解决方法是增加一个变量,每创建一个新的线程该变量就加1,每终止一个线程该变量就减1,当该变量再次为零时,就关闭整个进程。
Suppose a signal is generated during the very small time gap between setting the errno variable by the close system call and its return.
假定信号在close系统调用设置errno变量到其返回之前这一极小的时间片段内生成。
After loading the Properties object, you close the input stream, and then set your Boolean flag variable (init) value to true, demarcating that the AddressStore object has been initialized.
在加载properties对象之后,关闭输入流,然后设置布尔型标志变量(init)值为true,确定AddressStore对象已经被初始化。
应用推荐