Platform/프로세스
-
자바Platform/프로세스 2013. 6. 29. 23:12
Objectsynchronized.wait().notify() Runnable // interface.run() java.lang.Thread implements Runnable.sleep() // static .start().join() java.util.concurrent.Callable // interface; since 1.5.call() java.util.concurrent.Future // interface; since 1.5.get() Process java.util.concurrent.Executors.newSingleThreadExecutor() // static; ExecutorService.newCachedThreadPool() // static; ExecutorService.newF..
-
C#Platform/프로세스 2011. 7. 28. 16:50
delegate void System.Threading.ThreadStart(); System.Threading.Thread .CurrentThread // static .Sleep() // static .Name .ThreadState .Start() .Abort() .Suspend() .Resume() .Join() System.Threading.Monitor .Enter() .Exit() using System; using System.Threading; class ThreadProperty { public void ThreadBody() { .. Monitor.Enter(this); .. Monitor.Exit(this); } /* public void ThreadBody() { .. lock (..
-
UNIX/리눅스Platform/프로세스 2009. 2. 14. 22:00
프로세스 fork() exec{X}() close-on-exec exit() // C라이브러리 getpid() getppid() getgpid() getenv() // C라이브러리 putenv() setenv() unsetenv() 스레드 - pthread(POSIX thread) gcc -D_REENTRANT ... -lpthread pthread_create() pthread_exit() pthread_cancel() pthrad_join(() pthread_detach() pthread_self()
-
MFCPlatform/프로세스 2009. 2. 14. 21:30
스레드 CWinThread ::AfxBeginThread() THREAD_PRIORITY_NORMAL CREATE_SUSPENDED m_bAutoDelete m_hThread .SuspendThread() .ResumeThread() .SetThreadPriority() #define END_PROCESS ( WM_USER +1 ) class CCriticalSectionDlg : public CDialog { // Construction public: CCriticalSectionDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CCriticalSectionDlg) enum { IDD = IDD_CRITICALS..
-
WindowsPlatform/프로세스 2009. 2. 10. 21:10
작업 객체 CreateJobObject() OpenJobObject() AssignProcessToJobObject() SetInformationJobObject() QueryJobInformationObject() 커널 오브젝트 Usage Counting Security 프로세스 커널 오브젝트 핸들 테이블 액세스 마스크 Flags HANDLE_FLAG_INHERIT CreateProcess() ExitProcess() TerminateProcess() WaitForSingleObject() WaitForInputIdle() GetExitCodeProcess() GetProcessHandleCount() GetCurrentProcess() GetModuleFileName() GetModuleFileNam..
-
SDLPlatform/프로세스 2008. 12. 13. 16:29
SDL_Delay() // 새로운 쓰레드 생성 #include "SDL_thread.h" ... int thread_func(void *unused) { ... return(0); } ... SDL_Thread *thread = SDL_CreateThread(thread_func, NULL); if ( thread == NULL ) { fprintf(stderr, "Unable to create thread: %s\n", SDL_GetError()); return; } ... SDL_WaitThread(thread, NULL);