해당 글은 2018. 1. 10. 0:40 에 작성되었습니다.
* 초회뽑기란??
뭐든지 …
* 초회뽑기란??
뭐든지 …








<a name="top">The White Door - 1</a></h2>
...
<a href="#top" name="day1">1일차</a>
이렇게 작성한 경우.<a href="https://www.blogger.com/null" name="top">The White Door - 1</a></h2>
...
<a href="https://www.blogger.com/blogger.g?blogID=4906277156685256938#top" name="day1">1일차</a>
이렇게 괴상망측하게 변해버린다. 
beginthreadex , OS독립적으로는 pthread 등을 사용했다. 이 방식들은 arg를 1개만 줄 수 있었다. 물론
struct나 pointer로 넘기면 여러개가 가능하지만 요즘 누가 그렇게 쓰나. modern c++로 진입하면서 standard로 쓰레드를 편하게 사용할 수 있게 되었다. #include <thread>
간단하다 thread 를 include하면 된다.// target function
int add(int a, int b) { return a + b; }
// target class
class Target {
public:
void process() {}
}
// function pointer
std::thread t1(add, 1, 2);
// lambda
std::thread t1([a, b] { return a + b; });
// class function
Target target;
std::thread t1(&Target::process, &target);
join 과 돌려놓고 딴짓하는 detach 이다.// wait the thread to finish
t1.join();
// async
t1.detach();