首页> 外国专利> Technique for dynamically restricting thread concurrency without rewriting thread code

Technique for dynamically restricting thread concurrency without rewriting thread code

机译:动态限制线程并发而无需重写线程代码的技术

摘要

The present invention provides a technique for converting a multi-threaded application configured to execute on a uniprocessor (UP) system to one that executes on a multiprocessor (MP) system. Unlike previous approaches, a novel scheduling technique is employed so that different UP-coded user-level threads (“sthreads”) can execute concurrently in the MP system without having to rewrite their original code. To that end, the UP-coded sthreads are organized into different concurrency groups, each of which defines a set of one or more sthreads not permitted to execute concurrently. By grouping the UP-coded sthreads in this manner, different concurrency groups can be scheduled to execute their UP-coded sthreads at substantially the same time without incorporating traditional synchronization mechanisms into the sthreads' original UP code.
机译:本发明提供了一种用于将配置为在单处理器(UP)系统上执行的多线程应用程序转换为在多处理器(MP)系统上执行的应用程序的技术。与以前的方法不同,采用了一种新颖的调度技术,以便不同的UP编码用户级线程(“线程”)可以在MP系统中同时执行,而不必重写其原始代码。为此,UP编码的线程被组织为不同的并发组,每个并发组都定义了一组不允许同时执行的一个或多个线程。通过以这种方式对UP编码的线程进行分组,可以调度不同的并发组以基本上同时执行其UP编码的线程,而无需将传统的同步机制合并到线程的原始UP代码中。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号