[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] sleep i threads



On Thu, Nov 01, 2001 at 05:31:21PM -0500, Robert Larsen wrote:
> Lidt apropos den nylige diskussion om sleep, kunne jeg godt tænke mig at
> vide, om Linux har en sleep funktion, som virker på tråd niveau. Dvs. at
> kun den kaldende tråd skal blokkere.
> Meget gerne på mikrosekund.
> Jeg har længe søgt på nettet, men har ikke kunnet finde noget.
> 
> VH
> 
> Robert
>
Hvis du bruger POSIX Threads kan pthread_cond_timedwait anvendes.

Se "man pthread_cond_timedwait" for detaljer.

Præcisionen kan nok ikke forventes at være bedre end gettimeofday.

-- 
Regards, Rune Sandvik



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *