运行在另一个处理器上的克隆的线程切换num_proc1的值(并且根据由另一个处理器修改的该变量的值进行转移)。
The cloned thread running on another processor toggles the value of num_proc2 based on the value of num_proc1 (and branches based on the value of the variable modified by another process).
运行在一个处理器上的父进程根据num_proc2的值来切换num_proc1的值(并且根据由另一个处理器修改的该变量的值进行转移)。
The parent process running on one processor toggles the value of num_proc1 based on the value of num_proc2 (and branches based on the value of the variable modified by another process).
相反地,人们通过给Thread添加一个实例变量(该变量用于保存当前线程的从线程局部变量到它的值的映射的HashMap)来修改thread类以支持ThreadLocal。
Instead, the thread class was modified to support ThreadLocal by adding an instance variable to thread that holds a HashMap mapping thread-local variables to their values for the current thread.
编译器将会在预定义的位置集查找该头文件,这些预定义的位置可以通过设置查找路径环境变量或者通过命令行选项来修改。
The compiler will look for it in a predefined set of locations, which can be modified by setting a search path environment variable or through a command line option.
从底层的角度来说,你可以任意修改动量的值,只要你有该变量的内存地址。
In low-level terms, if you have the memory address of a variable, you can change the variable's value at will.
经修改后,该模型的正确性得到确认,其中,各变量之间的假设关系也都成立。
After revision, the correctness of this model is thus verified and the hypothetical relationship among different variables is proved sound.
经修改后,该模型的正确性得到确认,其中,各变量之间的假设关系也都成立。
After revision, the correctness of this model is thus verified and the hypothetical relationship among different variables is proved sound.
应用推荐