기본 콘텐츠로 건너뛰기

3월, 2013의 게시물 표시

DIAPP04_ThreadSynchronize Programming

< Critical section> CRITICAL_SECTION cs ;  //글로벌로 선언 InitializeCriticalSection ( & cs ); //메인에서 EnterCriticalSection (& cs );    // 다른 스레드들이 못 들어옴   // common or shared variable handling   ! 리브 하기전에 다른 데로 가면 엉킴. LeaveCriticalSection (& cs );   ---------------------------------------- example -------------------------------------------- #include <Windows.h> #include <stdio.h> CRITICAL_SECTION cs; DWORD __stdcall ThreadRunner( LPVOID parameter ) { ::EnterCriticalSection( &cs ); int* argument; int count; //  루프를 3번 실행한다. count = 3; //  인자를 받아온다. argument = ( int* )parameter; while( count-- > 0 ) printf( "I'm %d Thread !!\n", *argument); ::LeaveCriticalSection( &cs ); //  이 함수와 함께 쓰레드는 종료된다. return 0; } void main() { ::InitializeCriticalSection( &cs ); HANDLE handleThread[5]; int array[5] = { 0, }; int i; for( i = 0 ; i < 5 ; i++ ) { array

Google 3D maps seminar (13.02.20)

speaker : 배수현 박사님 (Google maps, mountain view, CA) 실제 기술이 상품에 응용되려면 실시간 처리가 가능해야한다. 성능이 최고가 나오지 않더라도 근접하다면 속도가 빠른 알고리듬을 적용한다. impainting ; prioritized graph-cut sony 카메라에 곧 탑제되어 출시될 예정 Google 3D maps 비행기에서 5 view, 자동차, 자전거, 직접 걸어서  촬영.   국제적문제, 사생활문제 시간, 계절, 시점으로 부터 발생하는 그림자를 어떻게 처리할 것인가 방대한양의 데이터를 처리; Bic data  계절에 따른 색깔 계획 : 손해보는 장사지만 모든 사용자에게 모든 정보를 제공할 것.; code의 open source화 사람이 갈 수 있는 곳은 다 modeling ; 아마존, 우주, 바다 속, 실내, 박물관(Google art project)