Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Realtime Library Functionssched_yield(3RT)


NAME

 sched_yield - yield processor

SYNOPSIS

 
cc [ flag... ] file... -lrt [ library... ]
#include <sched.h>
int sched_yield(void);

DESCRIPTION

 

The sched_yield() function forces the running thread to relinquish the processor until the process again becomes the head of its process list. It takes no arguments.

RETURN VALUES

 

If successful, sched_yield() returns 0, otherwise, it returns -1, and sets errno to indicate the error condition.

ERRORS

 

No errors are defined.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelMT-Safe

SEE ALSO

 

librt(3LIB), sched(3HEAD), attributes(5)


SunOS 5.9Go To TopLast Changed 5 Oct 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.