首页 | 本学科首页   官方微博 | 高级检索  
     


Good programming in transactional memory : Game theory meets multicore architecture
Authors:Raphael Eidenbenz  Roger Wattenhofer
Affiliation:
  • Computer Engineering and Networks Laboratory (TIK), ETH Zurich, CH-8092 Zürich, Switzerland
  • Abstract:In a multicore transactional memory (TM) system, concurrent execution threads interact and interfere with each other through shared memory. The less interference a thread provokes the better for the system. However, as a programmer is primarily interested in optimizing her individual code’s performance rather than the system’s overall performance, she does not have a natural incentive to provoke as little interference as possible. Hence, a TM system must be designed compatible with good programming incentives (GPI), i.e., writing efficient code for the overall system should coincide with writing code that optimizes an individual thread’s performance. We show that with most contention managers (CM) proposed in the literature so far, TM systems are not GPI compatible. We provide a generic framework for CMs that base their decisions on priorities and explain how to modify Timestamp-like CMs so as to feature GPI compatibility. In general, however, priority-based conflict resolution policies are prone to be exploited by selfish programmers. In contrast, a simple non-priority-based manager that resolves conflicts at random is GPI compatible.
    Keywords:Transactional memory   Game theory   Multicore architecture   Concurrency   Contention management   Mechanism design   Human factors
    本文献已被 ScienceDirect 等数据库收录!
    设为首页 | 免责声明 | 关于勤云 | 加入收藏

    Copyright©北京勤云科技发展有限公司  京ICP备09084417号