[JavaScript] 문자열 반복되는 문자열 생성 const BLANK = "_"; const result = BLANK.repeat(number); 문자열 합치기 1. +연산 const a = "_"; const b = "+"; const c = "-"; const result = a + b + c; 2. list to string (join) const a = "_"; const b = "+"; const c = "-"; const result = []; result.push(a,b,c); result.join(""); 성능 비교 (1) 59175 ms vs (2) 220 ms https://stackoverflow.com/questions/2087522/does-javascript-have-a-built-in-stringbui.. Chapter 06. Process Syncronization and Mutual Exclusion (5of7) - OS supported Sol2 - Semaphore Mutual Exclusion Solutions SW solutions Dekker's algorithm (Peterson's alogorithm) Dijstra's algorithm, Knuth's algo, Eisenberg and McGuire's algo, Lamport's algo HW solution TestAndSet(TAS) instruction OS supported SW solution Spinlock Semaphore Eventcount/sequencer Language-Level solution Monitor busy waiting을 해결하기 위해 Semaphore (또!) dijkstra가 제안 Busy waiting 문제 해결 !!! 음이 아닌 정수형 변수(S) 초기화 연산, P.. Chapter 06. Process Syncronization and Mutual Exclusion (4of7) - OS supported Sol1 - Spinlock Mutual Exclusion Solutions SW solutions Dekker's algorithm (Peterson's alogorithm) Dijstra's algorithm, Knuth's algo, Eisenberg and McGuire's algo, Lamport's algo HW solution TestAndSet(TAS) instruction OS supported SW solution Spinlock Semaphore Eventcount/sequencer Language-Level solution Monitor SW와 HW solution의 busy waiting을 해결하기 위해 SpinLock 정수 변수 (조금 특별한!) 초기화, P(), V() 연산으로만 접근 가능한 변수 위 연산.. Chapter06. Process Syncronization and Mutual Exclusion (3of7) - HW solution Mutual Exclusion Solutions SW solutions Dekker's algorithm (Peterson's alogorithm) Dijstra's algorithm, Knuth's algo, Eisenberg and McGuire's algo, Lamport's algo HW solution TestAndSet(TAS) instruction OS supported SW solution Spinlock Semaphore Eventcount/sequencer Language-Level solution Monitor Synchronization Hardware TestAndSet (TAS) instruction Test와 Set을 한번에 수행하는 .. Chapter 06. Process Syncronization and Mutual Exclusion (2of7) - SW solutions Mutual Exclusion Solutions SW solutions Dekker's algorithm (Peterson's alogorithm) Dijstra's algorithm, Knuth's algo, Eisenberg and McGuire's algo, Lamport's algo HW solution TestAndSet(TAS) instruction OS supported SW solution Spinlock Semaphore Eventcount/sequencer Language-Level solution Monitor Dekker's Algorigthm Two process ME을 보장하는 최초의 알고리즘 flag와 turn 둘 다 사용. /.. 이전 1 2 3 4 5 6 ··· 8 다음