2025/06 썸네일형 리스트형 Java - 가시성 문제? "volatile, synchronized, Atomic 정확히 언제 써야 할까? 📍 자바 멀티스레딩에서의 함정: 가시성(Visibility) 자바에서 멀티스레드를 사용할 때 흔히 하는 실수 중 하나는 다음과 같은 코드다. public class VisibilityProblemExample { static boolean flag = false; public static void main(String[] args) { // Thread A: flag가 true가 될 때까지 기다림 Thread readerThread = new Thread(() -> { System.out.println("Reader: 대기 중..."); while (!flag) { // 무한 .. 더보기 일렉트론 - ffi-napi 설치 오류 해결 Java Spring만 하다 일렉트론으로 클라이언트 프로그램을 만들게 되었다.코어로직은 c로 작성하고, dll로 변환하여 일렉트론에서 사용하려고 ffi-napi를 설치하려고 했다.npm install ffi-napi하지만 무수한 error들의 악수 요청..npm error code 1npm error path C:\Users\사용자\IdeaProjects\프로젝트명\node_modules\ffi-napinpm error command failednpm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp-buildnpm error nothing.cnpm error win_delay_load_hook.ccnpm error nothing.vcxpr.. 더보기 이전 1 다음