Lines Matching refs:threads
23 …threads. Once a child thread is started, it enters the standby state. After the main thread succes…
37 int g_startNum = 0; /* Number of threads to start */
38 int g_wakenNum = 0; /* Number of threads to wake up */
58 …/* The value of g_startNum is increased by 1. The value indicates the number of child threads that…
76 …/* The value of g_wakenNum is increased by 1. The value indicates the number of child threads that…
108 /* Create child threads in batches. */
118 /* Wait until all child threads obtain a mutex. */
123 /* Acquire a mutex and block all threads using pthread_cond_wait. */
148 /* Check whether all child threads are woken up. */
150 dprintf("ERROR: not all threads awaken, only %d thread(s) awaken!\n", g_wakenNum);
153 dprintf("all threads awaked\n");
155 /* Join all child threads, that is, wait for the end of all child threads. */
163 dprintf("all threads join ok\n");
183 all threads awaked
184 all threads join ok
196 - The OpenHarmony user-mode threads support only static priorities, which range from 0 (highest) to…