On Thu, 3 Sep 2020 00:46:16 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user Niresh
<[email protected]> wrote:


>
>I am wondering why the task1 function is not releasing the mutex lock even 
>with an sleep(1/2).

        Since "1/2" is integer division, the result is the same as sleep(0) --
which may return immediately and locking the mutex before the other thread
can even start.


        Providing a minimum compilable example demonstrating the problem would
also be of assistance. As it is we are left with either trying to write a
working program for testing, or working theoretically...



-- 
Dennis L Bieber

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/jv82lfdonrq6ln2ehuuifbgdkm94ff9ecg%404ax.com.

Reply via email to