编者注: This file was selected as MATLAB Central Pick of the Week
Augment of Mr. Dillon's work: http://www.mathworks.com/matlabcentral/fileexchange/32489-semaphore
This provides an interface with POSIX semaphore functionality on the native platform. Windows doesn't implement the POSIX semaphore API, so the Windows API equivalents are used if compiled on Windows.
To install/compile: mex -O -v semaphore.c
引用格式
Andrew Smart (2026). semaphore_POSIX_and_Windows (https://ww2.mathworks.cn/matlabcentral/fileexchange/45504-semaphore_posix_and_windows), MATLAB Central File Exchange. 检索时间: .
致谢
参考作品: semaphore
