Skip to Content
자바스크립트 완벽 가이드
book

자바스크립트 완벽 가이드

by David Flanagan, Han Seon- yong
February 2022
Beginner to intermediate
784 pages
24h 53m
Korean
Insight
Content preview from 자바스크립트 완벽 가이드
JavaScript
712
16장 노드와 서버 사이드 자바스크립트
다 9배 느리게 동작합니다. 단순히 2천만 번 증가시키는 게 목적이라면 스레드 하
나만 쓰는 편이 훨씬 단순하고 빠릅니다. 또한 이미지 처리 알고리즘 같은 경우도
배열의 각 요소가 다른 요소와 아무 상관없는 개별 값이므로 스레드 안정성이 보장
된다고 볼 수 있습니다. 하지만 실제 사용하는 프로그램에서는 배열 요소들이 서로
연관된 경우가 대부분이므로 어떤 형태로든 스레드 동기화가 필요합니다. 저수준
함수인
Atomics.wait()
,
Atomics.notify()
가 이 문제에 도움이 될 수도 있지만 이
책의 범위를 벗어납니다.
16.12
󻭣󻩌
자바스크립트는 웹 브라우저에서 실행되도록 설계됐지만 노드 덕분에 범용 프로그
래밍 언어로 탈바꿈했습니다. 노드는 웹 서버를 만들 때 특히 자주 사용되지만, 운
영 체제와 밀접하게 연결되므로 셸 스크립트를 대체하는 용도로 사용할 수도 있습
니다.
이 장에서 가장 중요한 주제는 다음과 같습니다.
·
·
기본적으로 비동기적이고 싱글 스레드이며, 콜백과 이벤트를 기반으로 동시성
을 구현하는 노드 API
·
·
노드의 기본적인 데이터 타입, 버퍼, 스트림
·
·
파일시스템을 다루는
fs
,
path
모듈
·
·
HTTP 클라이언트와 서버를 다루는
http
,
https
모듈
·
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

개발자를 위한 필수 수학

개발자를 위한 필수 수학

토머스 닐드
개발 7년차, 매니저 1일차

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

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9788966263462