thread-safe code的意思|示意

美 / / 英 / /

线程安全的代码


thread-safe code的网络常见释义

安全线程代码 ... Mach中使用CPU的单位。线程包括程序计数器、一组寄存器和一个栈指针。也请参见“任务”。 thread-safe code 安全线程代码 timer 计时器 ...

thread-safe code相关例句

What this means is that the following code is not thread safe!

这表示下面的代码不是线程安全的。

This is a typical symptom of code that is not thread safe.

这是一个典型的症状是不是线程安全的代码。

Once the class has been resolved, the original code location is modified in a thread-safe way to access the static field's address directly because that address is then known.

类一旦被解析,就会以一种线程安全的方式修改原始代码位置以便直接访问静态字段的地址,因为此时已获知该地址。

Will the code be thread safe?

将代码是线程安全的?

If you have two operations that require synchronization separated by a small block of thread-safe code, you are generally better just using a single synchronized block.

要是您想用一小块线程安全代码把要求同步的两个操作隔开,那么只使用一个同步块一般会更好些。

In other words, if you're using code that is not thread safe, you should either fix that code, or consider moving to the multi-process model.

换句话说,如果你使用的代码不是线程安全的,你需要修复你的代码,或者考虑使用多进程模型。