Skip to Content
우아한 C언어 코딩 패턴
book

우아한 C언어 코딩 패턴

by Christoper Preschem, 정기훈(Jung Ki Hun)
April 2024
Beginner to intermediate
364 pages
7h 2m
Korean
Insight
Content preview from 우아한 C언어 코딩 패턴
Fluent
162
󻱴󽴔󽴔󺠿󻱃󼗿󽴔󻛧󺽔󺇋󽴔󻙛󻯯󺉛
int getNumberOfSentBytes();
int getNumberOfReceivedBytes();
󺈻󼫓
static int number
_
of
_
sent
_
bytes
=
0;
static int number
_
of
_
received
_
bytes
=
0;
void sendByte(char data, char* destination
_
ip)
{
number
_
of
_
sent
_
bytes++;
/*
소켓
작업
*/
}
char receiveByte()
{
number
_
of
_
received
_
bytes++;
/*
소켓
작업
*/
}
int getNumberOfSentBytes()
{
return number
_
of
_
sent
_
bytes;
}
int getNumberOfReceivedBytes()
{
return number
_
of
_
received
_
bytes;
}
API는 무상태 소프트웨어 모듈의 API와 매우 유사해 보이지만, 이제 이 API 뒤
에는 함수 호출 간에 송신 및 수신 바이트 카운터를 위해 필요한 정보를 유지
하는 기능이 추가되었다. 이 API를 사용하는 사용자가 단 하나(하나의 스레드)
라면 모든 것이 정상적으로 동작한다. 그러나 스레드가 여러 개 있는 경우, 정
적 변수를 사용할 때 정적 변수 접근에 대한 상호 배제를 구현하지 않으면 경
합 조건(race ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀

Publisher Resources

ISBN: 9788966264742