Based on the process and including threaded code.
包括基于进程和线程的代码。
In my previous article, I talked about threaded code that did unusual and unexpected things.
在前一篇文章中,谈到了会导致异常结果的线程代码。
The labels within the interpreter function can be stored in the threaded code for super-fast dispatching.
解释程序中的函数中若使用这标签变量,那么它能被存到线程代码中以获得高效率的线程切换。
If you can do this, your threaded code will be really efficient and it won't tie up valuable mutex locks.
如果能够做到这一点,线程代码将是非常高效的,并且不会占用宝贵的互斥对象锁。
However, this kind of rhetoric has been prevalent for many years now, and yet a lot of developers are still happily writing single-threaded code.
然而,这类话语已经流行了多年,可是很多开发人员仍然乐于编写单线程代码。
You could put the calling thread to sleep for a little bit, say three seconds between each check, but then your threaded code wouldn't be optimally responsive.
在每次检查之间,可以让调用线程短暂地进入睡眠,比如睡眠三秒钟,但是因此线程代码就无法最快作出响应。
The web server takes advantage of the server's many cores to allow it to handle many simultaneous requests from the user, but each such request can often be handled by single-threaded code.
web服务器利用服务器的多个内核来同时处理来自用户的多个请求,但是每个这样的请求通常都由单线程代码处理。
For years, processor makers consistently delivered increases in clock rates and instruction-level parallelism, so that single-threaded code executed faster on newer processors with no modification.
多年来,处理器制造厂商在不断提高时钟速度和指令级并行性,因此单线程代码不需要修改就可在新的处理器上更快运行。
The test code provided in this article will reveal the true power of Cell/B.E. processing for threaded applications, and to some extent, the vector processing capabilities of the SPEs.
本文中提供的测试代码将展示Cell/B.E. 系统给线程化应用程序带来的巨大改进,并在某种程度上展示SPE的向量处理功能。
This code segment can be run safely in a single-threaded environment; however, it causes a deadlock in a multi-threaded environment.
这个代码片段可以在单线程环境中安全运行;然而,它会在多线程环境下引起死锁。
Terracotta, provides a JVM clustering solution that can turn single-node, multi-threaded apps into distributed, multi-node apps with no code changes.
Terracotta提供一种JVM集群方案,可让单节点、多线程的应用变成分布式、多节点的应用,而无需修改一行代码。
If this code were in a single-threaded program we'd expect the thread_function code to execute in its entirety.
如果代码是位于单线程程序中,可以预期thread_function代码将完整执行。
Most implementations (hw or sw) assume code inside a transaction is single-threaded, but isolation and parallelism are orthogonal (and Amdahl’s Law will strike with manycore)
大多数语言实现都假设事务中执行的代码是单线程的,但是隔离和并发是两个互不影响的概念(Amdahl 定律将受到多核的冲击)。
Easy language multi-threaded database query source code, a good reference, there is a need to download it.
说明:易语言多线程数据库查询对比源码,很好的参考资料,有需要的就下载吧。
Easy language multi-threaded PING source code, application programming source code, a good reference.
说明:易语言多线程PING源码,应用程序编程源码,很好的参考资料。
For the most part, these features were incompatible with multi-threaded applications and produced inefficient code.
这些功能大部分与多线程应用程序不兼容,并会使代码效率低下。
Single threaded performance on a GPU isn't that great, especially compared to a general purpose CPU, and trying to run code that isn't massively parallel just isn't going to be a great idea.
单线程性能的GPU是不是很大,尤其是相比,一般用途的CPU,并试图运行代码没有大规模并行刚才是不会成为一个伟大的想法。
A thread is an encapsulation of the flow of control in a program. you might be used to writing single-threaded programs - that is, programs that only execute one path through their code "at a time".
线程是程序中的控制流程的封装。你可能已经习惯于写单线程程序,也就是,程序在它们的代码中一次只在一条路中执行。
The code achieved a multi-threaded HTTP, including server-side and client.
本代码实现了多线程断点续传,包含服务器端和客户端。
The code achieved a multi-threaded HTTP, including server-side and client.
本代码实现了多线程断点续传,包含服务器端和客户端。
应用推荐