Linux and UNIX Man Pages

Test Your Knowledge in Computers #675
Difficulty: Easy
Wi-Fi is generally less vulnerable to hacker attacks than wired networks.
True or False?
Linux & Unix Commands - Search Man Pages

sched_yield(2) [freebsd man page]

SCHED_YIELD(2)						      BSD System Calls Manual						    SCHED_YIELD(2)

sched_yield -- yield processor LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sched.h> int sched_yield(void); DESCRIPTION
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. RETURN VALUES
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. ERRORS
On failure errno will be set to the corresponding value: [ENOSYS] The system is not configured to support this functionality. STANDARDS
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 SYNOPSIS
#include <sched.h> int sched_yield(void); DESCRIPTION
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. RETURN VALUE
The sched_yield() function shall return 0 if it completes successfully; otherwise, it shall return a value of -1 and set errno to indicate the error. ERRORS
No errors are defined. The following sections are informative. EXAMPLES
The Base Definitions volume of IEEE Std 1003.1-2001, <sched.h> COPYRIGHT
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 . IEEE
/The Open Group 2003 SCHED_YIELD(P)

8 More Discussions You Might Find Interesting

1. HP-UX

System V semphore

Hello,there 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)
Discussion started by: Frank2004
0 Replies

2. HP-UX

avoid semphore lock

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)
Discussion started by: Frank2004
1 Replies

3. Programming

Interesting issue with pthread_mutex_lock and siglongjmp in AIX 5.3 (and no other OS)

Executive summary: 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)
Discussion started by: DreamWarrior
1 Replies

4. Solaris

Problem building app

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 run ./configure seems to go fine, couple of no's but based on previous runs it seems to be ok... do make it goes... (3 Replies)
Discussion started by: jrich523
3 Replies

5. UNIX for Advanced & Expert Users

Pthread attr setting doesn't work before thread create?

Hello everyone, 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)
Discussion started by: ss1969
15 Replies

6. UNIX for Advanced & Expert Users

Playing with the Linux Scheduler

Hi, To begin with let me explain my system and then I will come to the problem. System: 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)
Discussion started by: demigod85
7 Replies

7. Programming

libcvd install problem

Hi 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)
Discussion started by: mdop
3 Replies

8. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies

Featured Tech Videos