But the results are almost always more correct: fewer deadlocks and more production-safe code.
—但结果几乎总是正确的:更少的死锁和更加适合生产的代码。
On the surface it looks as though lock elision allows us to write thread safe code without any synchronization penalty for using in cases where it really wasn't needed.
从表面上看,锁省略似乎可以允许我们不必忍受同步带来的负担,就可以编写线程安全的代码了,前提是在同步的确是多余的情况下。
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.
要是您想用一小块线程安全代码把要求同步的两个操作隔开,那么只使用一个同步块一般会更好些。
To determine whether the language compiler you use generates verifiably type-safe code, consult the compiler's documentation.
若要确定所使用的语言编译器是否生成可验证为类型安全的代码,请参见编译器的文档。
They remembered that when they moved in they found a safe code in the back of a medicine cabinet and after half a dozen attempts the safe opened.
他们记得搬进这个住处时曾在药柜后面发现一串保险箱密码,试了好几次后,保险箱终于打开了。
Because type-safe code cannot cause memory faults, using application domains ensures that code running in one domain cannot affect other applications in the process.
因为类型安全的代码不会导致内存错误,所以使用应用程序域可以确保在一个域中运行的代码不会影响进程中的其他应用程序。
Because type-safe code cannot cause memory faults, using application domains ensures that code running in one domain cannot affect other applications in the process.
因为类型安全的代码不会导致内存错误,所以使用应用程序域可以确保在一个域中运行的代码不会影响进程中的其他应用程序。
应用推荐