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 条
  • [21] 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)
  • [22] 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
  • [23] Reachability in Binary Multithreaded Programs Is Polynomial
    Malkis, Alexander
    Borgwardt, Steffen
    [J]. 2017 IEEE 37TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS (ICDCS 2017), 2017, : 2083 - 2088
  • [24] Pointer analysis of multithreaded Java programs
    Nanda, Mangala Gowri
    Ramesh, S.
    [J]. Proc ACM Symp Appl Computing, 1600, (1068-1075):
  • [25] Predicting and speedup of multithreaded Solaris programs
    Lundberg, L
    Roos, M
    [J]. FOURTH INTERNATIONAL CONFERENCE ON HIGH-PERFORMANCE COMPUTING, PROCEEDINGS, 1997, : 386 - 392
  • [26] On verifying distributed multithreaded Java programs
    Chen, Jessica
    [J]. Proceedings of the Annual Hawaii International Conference on System Sciences, 2000, 2000-January
  • [27] Confidentiality for multithreaded programs via bisimulation
    Sabelfeld, A
    [J]. PERSPECTIVES OF SYSTEM INFORMATICS, 2003, 2890 : 260 - 273
  • [28] Automatic Performance Modeling of Multithreaded Programs
    Tarvo, Alexander
    [J]. 36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE COMPANION 2014), 2014, : 721 - 723
  • [29] Static analysis of the determinism of multithreaded programs
    Ferrara, Pietro
    [J]. SEFM 2008: Sixth IEEE International Conference on Software Engineering and Formal Methods, Proceedings, 2008, : 41 - 50
  • [30] Lock Trace Reduction for Multithreaded Programs
    Cai, Yan
    Chan, W. K.
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2013, 24 (12) : 2407 - 2417