Controlling Multi Thread Execution using Single Thread Event Loop

被引:0
|
作者
Srivastava, Ratnesh Prasad [1 ]
Nandi, G. C. [2 ]
机构
[1] GBPUA&T, Coll Technol, Informat Technol, Pantnagar, Uttar Pradesh, India
[2] Indian Inst Informat Technol, Informat Technol, Allahabad, Uttar Pradesh, India
关键词
Actor; Callback; Abstraction; Promise; Monad; Inversion of Control;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Programming language of today does not have concurrency semantics and the only way of developing concurrency is to use multithread based request/response architecture. This model of concurrency produces non deterministic nature of execution and leads issues of deadlock, race conditions and synchronization further leads problem of managing locks. We decided to use single threaded non blocking asynchronous communication as used in Node. js[1]. Actor[2][3][4] model uses non blocking asynchronous communication and event loop ensures single threaded model of control of execution to process one message at a time. Actors communicate by communication passing style using callback (a mechanism of using function inside a function) has issues of Inversion of control or callback hell. So we decided to use Promise[5] a monad[6][7] as a return type of asynchronous communication. All the concurrent execution models Erlang[8], Salsa[9], Scala[10] developed in past supports thread based deployment model and does not abstract invocation from execution[8]. We support design by contract or programming through interfaces by developing a promise based concurrent abstraction framework. Using this abstraction we successfully integrated the components and designed the application of robotics subsumption model. Finally we concluded that promise based asynchronous communication is faster and takes less time than synchronous and callback based asynchronous communication.
引用
收藏
页码:88 / 94
页数:7
相关论文
共 50 条
  • [31] Loop recreation for thread-level speculation
    Gao, Lin
    Li, Lian
    Xue, Jingling
    Ngai, Tin-Fook
    2007 INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS, VOLS 1 AND 2, 2007, : 337 - +
  • [32] Loop selection for thread-level speculation
    Wang, Shengyue
    Dai, Xiaoru
    Yellajyosula, Kiran S.
    Zhai, Antonia
    Yew, Pen-Chung
    LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING, 2006, 4339 : 289 - +
  • [33] Dual-core execution: Building a highly scalable single-thread instruction window
    Zhou, HY
    PACT 2005: 14th International Conference on Parallel Architectures and Compilation Techniques, 2005, : 231 - 242
  • [34] Thread rolling and performance evaluations of a new anti-loosening double thread bolt combining a single thread and multiple threads
    Shinbutsu, Toshinaka
    Amano, Shuichi
    Takemasu, Teruie
    Kuwabara, Toshihiko
    Shimura, Jyo
    INTERNATIONAL CONFERENCE ON THE TECHNOLOGY OF PLASTICITY, ICTP 2017, 2017, 207 : 603 - 608
  • [35] Massively Parallel Rule-Based Interpreter Execution on GPUs Using Thread Compaction
    Koester, M.
    Gross, J.
    Krueger, A.
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2020, 48 (04) : 675 - 691
  • [36] Massively Parallel Rule-Based Interpreter Execution on GPUs Using Thread Compaction
    M. Köster
    J. Groß
    A. Krüger
    International Journal of Parallel Programming, 2020, 48 : 675 - 691
  • [37] A multi-thread approach reducing program execution time in a heterogeneous reconfigurable multi-processor architecture
    Thor, M
    JOURNAL OF SYSTEMS ARCHITECTURE, 1997, 43 (1-5) : 143 - 153
  • [38] Implemetation of Image Classification CNN using Multi thread GPU
    Han, Seong-Hyeon
    Lee, Kwang-Yeob
    PROCEEDINGS INTERNATIONAL SOC DESIGN CONFERENCE 2017 (ISOCC 2017), 2017, : 296 - 297
  • [39] Delta Execution: A preemptive Java']Java thread migration mechanism
    Ma, MJM
    Wang, CL
    Lau, FCM
    INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS I-V, PROCEEDINGS, 1999, : 518 - 524
  • [40] Optimization Technology of The Speculative Thread Execution Base on Parallel particle
    Yang Hong-bin
    Xu Zhen-kun
    Wu Yue
    2011 AASRI CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INDUSTRY APPLICATION (AASRI-AIIA 2011), VOL 2, 2011, : 1 - 5