글 못쓰는 개발자
Home
Write
Setting
About Me
Total
(15)
Travel
(1)
일본
(1)
Programming
(8)
C#
(4)
C++
(4)
Dev_App
(6)
Trastory
(6)
Dev_Game
(0)
Study
(0)
Dark
쓰레드 동기화 기법 Interlocked
#include #include #include unsigned long test_int = 0; void ThreadLoop(int number){for(int i = 0; i < number; ++i){ // 변수의 증가를 안전하게 보장한다.InterlockedIncrement(&test_int);std::cout
2013.02.27
Programming/C++
Critical_Section 예제
#include #include #include int test_int = 0; // 크리티컬 섹션 변수CRITICAL_SECTION critical_section_; void ThreadLoop(int number){static int thread_number; for(int i = 0; i < number; ++i){std::cout
2013.02.20
Programming/C++
멀티 쓰레드의 문제
#include #include #include int test_int = 0; void ThreadLoop(int number){static int thread_number; std::cout
2012.11.29
Programming/C++
_beginthreadex() 예제
#include #include #include int test_int = 0; // 1번째 Threadunsigned int WINAPI Thread_Function_one(void *avg){std::cout
2012.11.22
Programming/C++
Prev
1
Next
티스토리툴바