首页> 外文期刊>Concurrency and Computation >A comparison of concurrent programming and cooperative multithreading under load balancing applications
【24h】

A comparison of concurrent programming and cooperative multithreading under load balancing applications

机译:负载平衡应用程序下并发编程和协作多线程的比较

获取原文
获取原文并翻译 | 示例
           

摘要

Two models of thread execution are the general concurrent programming execution model (CP) and the cooperative multithreading execution model (CM). CP provides nondeterministic thread execution where context switches occur arbitrarily. CM provides threads that execute one at a time until they explicitly choose to yield the processor. This paper focuses on a classic application to reveal the advantages and disadvantages of load balancing during thread execution under CP and CM styles; results from a second classic application were similar. These applications are programmed in two different languages (SR and Dynamic C) on different hardware (standard PCs and embedded system controllers). An SR-like run-time system, DesCaRTeS, was developed to provide interprocess communication for the Dynamic C implementations. This paper compares load balancing and non-load balancing implementations; it also compares CP and CM style implementations. The results show that in cases of very high or very low workloads, load balancing slightly hindered performance; and in cases of moderate workload, both SR and Dynamic C implementations of load balancing generally performed well. Further, for these applications, CM style programs outperform CP style programs in some cases, but the opposite occurs in some other cases. This paper also discusses qualitative tradeoffs between CM style programming and CP style programming for these applications.
机译:线程执行的两种模型是通用并发编程执行模型(CP)和协作多线程执行模型(CM)。 CP提供不确定的线程执行,其中上下文切换是任意发生的。 CM提供了一次执行一个线程的线程,直到它们明确选择让处理器退出为止。本文关注于一个经典的应用程序,以揭示在CP和CM风格下线程执行期间负载平衡的优缺点;第二个经典应用程序的结果相似。这些应用程序在不同的硬件(标准PC和嵌入式系统控制器)上以两种不同的语言(SR和Dynamic C)编程。开发了一个类似于SR的运行时系统DesCaRTeS,以为Dynamic C实现提供进程间通信。本文比较了负载均衡和非负载均衡的实现。它还比较了CP和CM样式的实现。结果表明,在非常高或非常低的工作负载的情况下,负载平衡会稍微影响性能。在中等工作量的情况下,负载平衡的SR和Dynamic C实施通常都表现良好。此外,对于这些应用程序,在某些情况下,CM风格的程序要优于CP风格的程序,但在另一些情况下则相反。本文还讨论了针对这些应用的CM风格编程和CP风格编程之间的定性权衡。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号