Home > Software design >  For what purpose is _pthread_cond_timedwait function used in v8?
For what purpose is _pthread_cond_timedwait function used in v8?

Time:03-07

In the profiling logs of chrome (--prof) option with a webpage, a majority of ticks is consumed by _pthread_cond_timedwait function in C .

log

What purpose is this used for? Is it used by the profiling thread? or is it waiting for some network request to finish loading?

Also, what are these 'ticks' terminology used in here and V8's profiling tools?

CodePudding user response:

It means that the thread was sleeping, waiting for something to do. Maybe it was waiting for a network request, or maybe for something else, such as the next scheduled callback.

  • Related