glibc/sysdeps/unix
Sergey Kolosov a9017caff3 nptl: extend test coverage for sched_yield
We add sched_yield() API testing to the existing thread affinity
test case because it allows us to test sched_yield() operation
in the following scenarios:

  * On a main thread.
  * On multiple threads simultaneously.
  * On every CPU the system reports simultaneously.

The ensures we exercise sched_yield() in as many scenarios as
we would exercise calls to the affinity functions.

Additionally, the test is improved by adding a semaphore to coordinate
all the threads running, so that an early starter thread won't consume
cpu resources that could be used to start the other threads.

Co-authored-by: DJ Delorie <dj@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2025-03-07 17:50:44 -05:00
..
alpha Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
arm Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bsd Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
i386 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
inet
mips Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
powerpc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sh Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sysv/linux nptl: extend test coverage for sched_yield 2025-03-07 17:50:44 -05:00
x86_64 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Implies
Makefile Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
confstr.h
get_child_max.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getlogin.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getlogin_r.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
grantpt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ifreq.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
make-syscalls.sh
setxid.h
sockatmark.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscall-template.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscall.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscalls.list
sysdep.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00