Software Version
DRIVE OS 6.0.6
Target Operating System
[*] Linux
SDK Manager Version
1.9.2.10884
Host Machine Version
native Ubuntu Linux 20.04 Host installed with DRIVE OS DOCKER Containers
!!!
Description:
I test cpu_simple demo in stm/src.Running 16 Runnables instead of 2.As a result, a timeout error occurred.
Code:
int main(int argc, const char** argv)
{
(void)argc;
(void)argv;
stmClientInit("client"); // Needs to be called before registration
stmRegisterCpuRunnable(test1, "test1", NULL);
stmRegisterCpuRunnable(test2, "test2", NULL);
stmRegisterCpuRunnable(test3, "test3", NULL);
stmRegisterCpuRunnable(test4, "test4", NULL);
stmRegisterCpuRunnable(test5, "test5", NULL);
stmRegisterCpuRunnable(test6, "test6", NULL);
stmRegisterCpuRunnable(test7, "test7", NULL);
stmRegisterCpuRunnable(test8, "test8", NULL);
stmRegisterCpuRunnable(test9, "test9", NULL);
stmRegisterCpuRunnable(test10, "test10", NULL);
stmRegisterCpuRunnable(test11, "test11", NULL);
stmRegisterCpuRunnable(test12, "test12", NULL);
stmRegisterCpuRunnable(test13, "test13", NULL);
stmRegisterCpuRunnable(test14, "test14", NULL);
stmRegisterCpuRunnable(test15, "test15", NULL);
stmRegisterCpuRunnable(test16, "test16", NULL);
Error:
[STM ERROR]:[av/stm/runtime/src/core/synchronization.c][stmCondSemTimedWaitForValue] [122]: CondSem Wait Timed Out. err=4
[STM ERROR]:[av/stm/runtime/src/client/sync.c][stmFenceWait] [69]: Could not wait on stmOsFence f2 in iteration: 1 stmError=4
[STM ERROR]:[av/stm/runtime/src/client/commands/wof.c][opExecuteWof] [28]: [Thread pool1] [Time 1675252631493921152] Fence timeout: f2. Iteration: 1
[STM] Thread pool1 exiting, thread exit count 1, time : 1675252631493929056
[STM ERROR]:[av/stm/runtime/src/core/synchronization.c][stmCondSemTimedWaitForValue] [122]: CondSem Wait Timed Out. err=4
[STM ERROR]:[av/stm/runtime/src/client/sync.c][stmFenceWait] [69]: Could not wait on stmOsFence f2 in iteration: 1 stmError=4
[STM ERROR]:[av/stm/runtime/src/client/commands/wof.c][opExecuteWof] [28]: [Thread pool0] [Time 1675252631493978304] Fence timeout: f2. Iteration: 1
[STM] Thread pool0 exiting, thread exit count 2, time : 1675252631493985088
[STM][ERROR] pthread_join() failed; errno: 2 (No such file or directory)
[STM][ERROR] pthread_join() failed; errno: 2 (No such file or directory)
Question:
1. How can I increase the number of thread pools?
2.The maximum number of thread pools that a client can support is?
3.How to better solve this error?