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对象已经被初始化。
Obviously, information with its technology has already become a new variable and, in its close relation to social strata, is now rebuilding the mechanism of social stratification.
信息、信息技术已经成为一种新的变量,并与社会阶层之间产生着密切的关系,重塑着社会阶层化机制。
DIGITAL-TO-ANALOG, the process of converting a digital signal (binary) to a continuously variable (analog) signal that is a close approximation of the original signal.
数一模转换,将数字信号(二进制)转换成与原信号相似的连续可变(模拟)信号的处理过程。
This article mostly introduce reconstruction and recycle of close circuit variable pump.
主要介绍闭式变量柱塞泵的功能改造和再应用。
There was a close correlation between baseline FHR with abnormal changes and severe variable deceleration with fetal distress.
胎心基线异常、重度变异减速与胎儿窘迫的发生密切相关;
This article mostly introduces the reconstruction and recycle of close circuit variable pump.
主要介绍闭式变量柱塞泵的功能改造和再应用。
But asynchronous machine is a multivariate close coupling non - linear time - variable parameter system. And it is difficult to control by rule and line through adding exterior signal directly.
而异步电机是一个多变量、强耦合、非线性的时变参数系统,很难直接通过外加信号准确控制电磁转矩。
Variable speed filling: in the filling process, when close to the target filling volume to achieve a slow speed can be applied when filling, to prevent fluid overflow bottle pollution.
变速灌装:在灌装过程中,当接近目标灌装容量时可应用变速实现慢速灌装,防止液体溢出瓶口造成污染。
Most of subspace identification algorithms at home have errors in the errors-in-variable situation and close-loop situation.
目前很多先进算法均是基于多变量模型的,因此多变量闭环辨识也成为研究的热点之一。
Danfoss Variable speed driver can drive the permanent magnetic motor via open-loop or close-loop method.
丹佛斯变频器可以开环或闭环方式驱动交流永磁同步电机。
Danfoss Variable speed driver can drive the permanent magnetic motor via open-loop or close-loop method.
丹佛斯变频器可以开环或闭环方式驱动交流永磁同步电机。
应用推荐