Fix-Point commented on PR #20057: URL: https://github.com/apache/nuttx/pull/20057#issuecomment-5564269425
> @Fix-Point another question, does this PR fixes this Issue: #19370 ? The issue mentioned in #19370 is caused by unfair pthread mutex, not the scheduler. If we remove the `pthread_mutex_lock/unlock` in the testcase, we can get the fair result: ```bash qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -smp 8 -bios none -nographic -kernel nuttx ABC NuttShell (NSH) NuttX-12.13.0 nsh> nsh> nsh> hello Low task 1 count: 1468315765 Low task 2 count: 1339093170 Total operations: 2807408935 Elapsed time: 5001.25 ms Average time per operation: 0.001 us nsh> hello Low task 1 count: 1468315765 Low task 2 count: 1339093170 Total operations: 2807408935 Elapsed time: 5001.35 ms Average time per operation: 0.001 us nsh> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
