SCHED_YIELD(2) BSD System Calls Manual SCHED_YIELD(2)NAME
sched_yield -- yield processor
Standard C Library (libc, -lc)
The sched_yield() system call forces the running process to relinquish the processor until it again becomes the head of its process list. It
takes no arguments.
The sched_yield() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to
indicate the error.
On failure errno will be set to the corresponding value:
[ENOSYS] The system is not configured to support this functionality.
The sched_yield() system call conforms to IEEE Std 1003.1b-1993 (``POSIX.1'').
BSD March 12, 1998 BSD
Check Out this Related Man Page
SCHED_YIELD(P) POSIX Programmer's Manual SCHED_YIELD(P)
sched_yield - yield the processor
The sched_yield() function shall force the running thread to relinquish the processor until it again becomes the head of its thread list.
It takes no arguments.
The sched_yield() function shall return 0 if it completes successfully; otherwise, it shall return a value of -1 and set errno to indicate
No errors are defined.
The following sections are informative.
The Base Definitions volume of IEEE Std 1003.1-2001, <sched.h>
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE /The Open Group 2003 SCHED_YIELD(P)
here is my code about semphore, when calling it in the program,sometimes result in the deadlock of semphore, but I can not find it, anyone can point some bugs and give some suggestion?
#define BIGCOUNT 888 // initial value of process counter
#define SEM_POST_LIMIT 3 ... (0 Replies)
we developed a set of system V semphore interface for our application, in general, all of them work normal, seldom cause the deadlock. Here are some important sem_wait and sem_post interface, pls point some suggestion to fixed the deadlock problem:
int sem_wait_V(int id, struct sembuf *sem_pv)... (1 Reply)
Code (posted below) cores in AIX 5.3, despite being compiled and run successfully on several other operating systems. Code is attempting to verify that pthread_mutex_lock can be successfully aborted by siglongjmp. I do not believe this is an unreasonable requirement.
If... (1 Reply)
trying to run IPERF and i've downloaded and installed and screwed around with my path to get compilers and such available...
log in as myself, go to /iperf-2.0.4
switch to su
seems to go fine, couple of no's but based on previous runs it seems to be ok...
it goes... (3 Replies)
I created a test program for pthread priority set. Here's the code, very simple, 60 lines only.
I've tried this prog on my Fedora 13(on vbox), and on my 6410 arm linux 2.6.36. Both the same result.
Both environments are using root privileges.
Can any body tells me why the... (15 Replies)
To begin with let me explain my system and then I will come to the problem.
My program forks 2 child processes. These child processes further start 2 user level threads (pthreads) and 2 kernel level threads (kthread). All these threads issue various system calls. I am using... (7 Replies)
I'm trying to install libcvd libraries (running Ubuntu 10.10) but get errors, I guesss its saying I miss dc1394v1 and ffmpeg. Altough when looking in synaptic manager I appear to have ffmpeg and libdc1394 (version 2). When I do ./config, after all the checks, I get:
Options:... (3 Replies)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)