File Descriptors And Multithreaded Programs

被引:0
|
作者
Babkin, Sergey
机构
来源
DR DOBBS JOURNAL | 2008年 / 33卷 / 12期
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When writing multithreaded programs that work with sockets, a common pattern is to have two threads per socket-one thread writes the data to the socket, another one reads the data. Obviously, the socket library used for this should be threadsafe to start with and support a read from a socket in one thread and a write to the socket in the other thread without corrupting the library's socket state. The raw system calls read() and write() support this. Your experience with the more sophisticated libraries may vary.
引用
收藏
页码:42 / 45
页数:4
相关论文
共 50 条
  • [11] Pointer analysis for multithreaded programs
    Rugina, R
    Rinard, M
    [J]. ACM SIGPLAN NOTICES, 1999, 34 (05) : 77 - 90
  • [12] MUCH: Multithreaded Content-Based File Chunking
    Won, Youjip
    Lim, Kyeongyeol
    Min, Jaehong
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 2015, 64 (05) : 1375 - 1388
  • [13] Visualizing Potential Deadlocks in Multithreaded Programs
    Kim, Byung-Chul
    Jun, Sang-Woo
    Hwang, Dae Joon
    Jun, Yong-Kee
    [J]. PARALLEL COMPUTING TECHNOLOGIES, PROCEEDINGS, 2009, 5698 : 321 - +
  • [14] Pointer and escape analysis for multithreaded programs
    Salcianu, A
    Rinard, M
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (07) : 12 - 23
  • [15] Constraint graph analysis of multithreaded programs
    Cain, HW
    Lipasti, MH
    Nair, R
    [J]. 12TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, PROCEEDINGS, 2003, : 4 - 14
  • [16] ADAPT: A Framework for Coscheduling Multithreaded Programs
    Pusukuri, Kishore Kumar
    Gupta, Rajiv
    Bhuyan, Laxmi N.
    [J]. ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2013, 9 (04)
  • [17] Debugging Multithreaded Programs as if They Were Sequential
    Zhang, Xiaodong
    Yang, Zijiang
    Zheng, Qinghua
    Hao, Yu
    Liu, Pei
    Yu, Lechen
    Fan, Ming
    Liu, Ting
    [J]. 2016 INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, TESTING AND EVOLUTION (SATE 2016), 2016, : 78 - 83
  • [18] Visual debugging of multithreaded Java programs
    Jackson, David
    [J]. 2001 IEEE Symposium on Human-Centric Computing, 2001, : 340 - 341
  • [19] Detection of deadlock potentials in multithreaded programs
    Agarwal, R.
    Bensalem, S.
    Farchi, E.
    Havelund, K.
    Nir-Buchbinder, Y.
    Stoller, S. D.
    Ur, S.
    Wang, L.
    [J]. IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 2010, 54 (05)
  • [20] A concept of portable monitoring of multithreaded programs
    Balis, B
    Bubak, M
    Funika, W
    Wismüller, R
    [J]. COMPUTATIONAL SCIENCE-ICCS 2002, PT II, PROCEEDINGS, 2002, 2330 : 884 - 893