高级检索

    ConC++:C++的一种并发扩充语言

    ConC++: A CONCURRENT LANGUAGE EXTENDED FROM C++

    • 摘要: 提出一种对 C++进行并发扩充的语言 Con C++.Con C++是一个并发面向对象语言 ,它采用并发类和保护类的机制支持并发 .并发类有一个主动函数 ,一旦对象被创建 ,这个主动函数就开始执行 ;保护类封装了一组数据和对数据的操作 ,它没有自己的线程 ,而是用来实现对并发类对象的同步、互斥和通信 .这种集中控制对象的并发的方法体现了对象的自治性特点 ,减少了上下文切换和死锁发生的可能 ,从而提高了程序的性能

       

      Abstract: In this paper, the programming language ConC++ is introduced, which is extended from C++ to support multithread and concurrent programming using concurrent classes and protected classes. A concurrent class has an active function, which executes immediately when an object is instantiated. A protected class encapsulates a group of data and operations on them. It is used to implement synchronization and mutual exclusion between objects of concurrent classes, with the centralized object concurrency control. The approach achieves object autonomy, decreases context switches and deadlocks and increases program performance.

       

    /

    返回文章
    返回