유닉스에서 서버 프로세스 개발하시는 분에게 질문

  • #3018655
    서버쟁이 97.***.152.123 1143

    Shared memory 사용하여 서버 프로세스들이 실행됩니다.
    그중에 몇가지를 수정, 개선하는 일을 하게 된다면,

    어떤 책으로 미리 공부할 수있을까요?

    서버 프로세스끼리의 통신도 있으며, 실시간 ISAM 파일 읽고 쓰기도 있고,
    클라이언트 프로세스와의 통신도 있습니다.

    c++, c 언어 상관 없습니다.

    유닉스에서 shared memory, tcp/ip 통신을 다루는 책이면 됩니다.

    • RME 209.***.52.48

      There are plenty of online materials. But if you insist, the classic “TCP/IP Illustrated” by Richard Stevens might be a good start.

      One can argue that you can learn about IPC and network programming through man pages or books, but it is hard to learn design skills from those source. E.g. you might be able to come up with a design. How would that actually perform? Is it going to be close to optimal? How do you know if it is not? Sometimes one line of fix can have a great impact. More importantly, the same fix can have opposite impact on other cases. Think about TCP_NODELAY & TCP_CORK for example.

      You often learn more from looking at other high quality code.

    • ㅌㅌㅌ 66.***.42.220

      + 같은 저자가 쓴 UNIX Network Programming.
      요 두권이 거의 바이블이라고 보심면 됨.

    • 원글 97.***.152.123

      윗분들 감사합니다.

      온라인 자료가 많다고 하셨는데요, “Unix Shared Memory” 으로 유툽 검색해 보면,
      거의 다 리눅스 환경입니다. 유닉스 환경이라고 많이 다른게 아니라면 상관없지만…

      온라인 자료를 어떤 키워드로 검색하면 효율적으로 잘 찾을 수 있을까요?

      위의 검색어로 나온 결과물을 보면 2,3분 짜리 자료도 엄청 많네요.
      학원, 학교 홍보하는 자료들인 것 같구요.

      • RME 209.***.52.48

        Start from the POSIX IPC. There are two major variants of Unix, System V (system five) and BSD. Most modern Unix/unix-like operating systems implement POSIX, but they also maintain the old native IPC API. So it might be helpful to know which variant of Unix you are dealing with. No matter what OS is, using POSIX is preferred, although native API is sometimes used for various reasons. E.g. When the POSIX “wrapper” wasn’t mature on Linux, certain POSIX calls were noticeably slower than natively supported calls. Things like pthread on Linux has come a long way. Pay close attention to subtle differences in semantics and capabilities of POSIX and native API.