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 条
  • [1] Dynamic Verification for File Safety of Multithreaded Programs
    El-Zawawy, Mohamed A.
    Daoud, Nagwan M.
    [J]. INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND NETWORK SECURITY, 2012, 12 (05): : 14 - 20
  • [2] Analysis of multithreaded programs
    Rinard, M
    [J]. STATIC ANALYSIS, PROCEEDINGS, 2001, 2126 : 1 - 19
  • [3] Security of multithreaded programs by compilation
    Barthe, Gilles
    Rezk, Tamara
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. COMPUTER SECURITY - ESORICS 2007, PROCEEDINGS, 2007, 4734 : 2 - +
  • [4] CARET Analysis of Multithreaded Programs
    Huu-Vu Nguyen
    Touili, Tayssir
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2017), 2018, 10855 : 73 - 90
  • [5] Pointer analysis for multithreaded programs
    Rugina, R
    Rinard, M
    [J]. ACM SIGPLAN NOTICES, 1999, 34 (05) : 77 - 90
  • [6] Modular verification of multithreaded programs
    Flanagan, C
    Freund, SN
    Qadeer, S
    Seshia, SA
    [J]. THEORETICAL COMPUTER SCIENCE, 2005, 338 (1-3) : 153 - 183
  • [7] Taming Deadlocks in Multithreaded Programs
    Cai, Yan
    Chan, W. K.
    Yu, Y. T.
    [J]. 2013 13TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC), 2013, : 276 - 279
  • [8] Opportunistic Monitoring of Multithreaded Programs
    Soueidi, Chukri
    El-Hokayem, Antoine
    Falcone, Ylies
    [J]. FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2023, 2023, 13991 : 173 - 194
  • [9] Security of Multithreaded Programs by Compilation
    Barthe, Gilles
    Rezk, Tamara
    Russo, Alejandro
    Sabelfeld, Andrei
    [J]. ACM TRANSACTIONS ON INFORMATION AND SYSTEM SECURITY, 2010, 13 (03)
  • [10] DEBUGGING MULTITHREADED PROGRAMS WITH MPD
    PONAMGI, MK
    HSEUSH, W
    KAISER, GE
    [J]. IEEE SOFTWARE, 1991, 8 (03) : 37 - 43