我在 stackoverflow 問了一個問題 !!!
http://stackoverflow.com/questions/20490058/confusing-core-dump-while-implementing-semaphore
我在 stackoverflow 問了一個問題 !!!
http://stackoverflow.com/questions/20490058/confusing-core-dump-while-implementing-semaphore
#include <iostream>
#include <vector>
void funcclose(FILE* f)
{
//http://scrupulousabstractions.tumblr.com/post/37576903218/cpp11style-no-new-delete
#include <thread>
三個地方在 c++0x 而不是 c++11 時必須修改 :
1. using LargeArray= array<int,10000>; 改成 typedef array<int,10000> LargeArray ;
//http://scrupulousabstractions.tumblr.com/post/37576903218/cpp11style-no-new-delete
/* stephantl_make_unique.h
因為 clients 超過 1000 個,所以使用 event 方式而不產生 threads, 每個 client 都將自己
想要看的股票代碼傳進來 , 此時使用 lockfreequeue 把 client 欲刪除/增加 的股票代碼 傳進去每個
class People
{