diff options
author | Sergey Kolosov <skolosov@redhat.com> | 2025-01-28 23:56:26 +0100 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2025-03-07 17:50:44 -0500 |
commit | a9017caff3b77032d04e2e439f7c04a63241e63e (patch) | |
tree | 72d9c913ca38e0b6d5de4758b0121b3ed3a183ba /sysdeps/unix/sysv/linux/fstat.c | |
parent | 6ef0bd02dbe34aab8b956ffa2db5679341d520f5 (diff) | |
download | glibc-a9017caff3b77032d04e2e439f7c04a63241e63e.zip glibc-a9017caff3b77032d04e2e439f7c04a63241e63e.tar.gz glibc-a9017caff3b77032d04e2e439f7c04a63241e63e.tar.bz2 |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/fstat.c')
0 files changed, 0 insertions, 0 deletions