I have a COBOL program which would perform threads and call C function defined in direct.c
and the C function would call usleep() internally.
As my understanding, C usleep() would suspend current thread only.
But I found the C function would block other thread in COBOL, ie 'perform thread'
So, I write a simple C function just call usleep() and relink runtime.
The behavior is the same as I expect.
COBOL call C usleep() would block other COBOL thread.
If I replace the C fuction to C$SLEEP, the COBOL threads would run normally.
My environment is AcuGT v9, AIX 7 64 bit
Thanks & Regards,