# VB call Mutex 是否支援MultiThread???

Posted by Sandy on August 30, 1999 at 16:57:00:

可否请问使用一次开5000个MultiThread测试VB call Mutex,VB call Mutex 是否支援MultiThread???
hMutex = CreateMutex(lpMutexAttributes, True, "Sandy")
WaitForSingleObject hMutex, INFINITE
theResponse.Write "YesMutex Num: " & Num (Num为Global变数)
Sleep ("100")
Num = Num + 1
ReleaseMutex hMutex
CloseHandle hMutex
请问就以上程式,Num是否应会顺序排列,并不会产生跳号现象???
谢谢你的帮忙!!!..........>_<

Follow Ups: