序号:21431 发表者:口木子 发表日期:2002-11-17 13:43:19
主题:懒汉问您:与线程有关的API有哪几个?
内容:懒汉问您:与线程有关的API有哪几个?
返回上页访问论坛
回复者:无非 回复日期:2002-11-17 13:55:20
内容:CreateThread()
返回上页访问论坛
回复者:口木子 回复日期:2002-11-17 14:01:12
内容:还有呢?
返回上页访问论坛
答案被接受回复者:无非 回复日期:2002-11-17 14:15:01
内容:SetThreadPriority() ,设置线程优先级再可能就是关于线程同步的了。
返回上页访问论坛
回复者:John Lan 回复日期:2002-11-17 15:08:35
内容:Function Description AttachThreadInput Attaches the input processing mechanism of one thread to that of another thread. CreateRemoteThread Creates a thread that runs in the virtual address space of another process. CreateThread Creates a thread to execute within the virtual address space of the calling process. ExitThread Ends a thread. GetCurrentThread Retrieves a pseudo handle for the current thread. GetCurrentThreadId Retrieves the thread identifier of the calling thread. GetExitCodeThread Retrieves the termination status of the specified thread. GetThreadPriority Retrieves the priority value for the specified thread. GetThreadPriorityBoost Retrieves the priority boost control state of the specified thread. GetThreadTimes Retrieves timing information for the specified thread. OpenThread Opens an existing thread object. ResumeThread Decrements a thread's suspend count. SetThreadAffinityMask Sets a processor affinity mask for the specified thread. SetThreadIdealProcessor Specifies a preferred processor for a thread. SetThreadPriority Sets the priority value for the specified thread. SetThreadPriorityBoost Disables the ability of the system to temporarily boost the priority of a thread. Sleep Suspends the execution of the current thread for a specified interval. SleepEx Suspends the current thread until the specified condition is met. SuspendThread Suspends the specified thread. SwitchToThread Causes the calling thread to yield execution to another thread that is ready to run on the current processor. TerminateThread Terminates a thread. ThreadProc An application-defined function that serves as the starting address for a thread. TlsAlloc Allocates a thread local storage (TLS) index. TlsFree Releases a TLS index. TlsGetValue Retrieves the value in the calling thread's TLS slot for a specified TLS index. TlsSetValue Stores a value in the calling thread's TLS slot for a specified TLS index. WaitForInputIdle Waits until the specified process is waiting for user input with no input pending, or until the time-out interval has elapsed.
返回上页访问论坛
回复者:无非 回复日期:2002-11-17 23:05:49
内容:楼上的,哪里找这么详细的啊?
返回上页访问论坛
回复者:口木子 回复日期:2002-11-18 15:13:03
内容: 谢谢啊,各位大哥!
返回上页访问论坛
回复者:John Lan 回复日期:2002-11-18 20:15:55
内容:MSDN Platform SDK Base Service Dll and Process, Thread
返回上页访问论坛