logo-MindMajix
PostLinuxLinux
c
chris bons

Posted on 23rd July 2024|69 views

0
votes

Pthread Sleep

Why do we use pthread sleep in Linux?

1 answers
Answers
P
Aryan Sharma

Posted on 23rd July 2024| views

sleep() function does not terminate a particular thread; however, it ends the entire method for the particularised sum of time. For preventing the execution of an appropriate thread, we can utilize one pthread condition object and also apply pthread_cond_timedwait() function for obtaining the thread pause for a particular sum of time.

If you are looking for the Linux certification course, you can check out this Linux course by Mindmajix.
 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number