StratifyLabs / sostest

Stratify OS Test Suite
GNU Lesser General Public License v3.0
3 stars 3 forks source link

sys::Mutex doesn't like 3 threads #54

Closed tyler-gilbert closed 6 years ago

tyler-gilbert commented 6 years ago

@shomagan I ran the sys mutex stress test. The OS just bounces back and forth between 2 threads and never yields the mutex to the first thread. I will add an issue to the StratifyOS to fix this but for now if you do Timer::wait_microseconds() for a longer period of time while the mutex is unlocked, the first thread should have a chance to grab it.

The tests are looking great so far. Keep up the good work.

tyler-gilbert commented 6 years ago

https://github.com/StratifyLabs/StratifyOS/issues/139

shomagan commented 6 years ago

Good day, where I can read the information about sheduling, and how switching occurs . if use yield will it go to another process? with more low priority. Use Timer::wait, runs the sheduller handling?and how does an external shedulling handling work(every time interval?) with out internal yield.

tyler-gilbert commented 6 years ago

I just added some details here:

https://stratifylabs.co/StratifyAPI/html/classsys_1_1_sched.html

On Wed, Jun 13, 2018 at 4:42 AM shomagan notifications@github.com wrote:

Good day, where I can read the information about sheduling, and how switching occurs . if use yield will it go to another process? with more low priority. Use Timer::wait, runs the sheduller handling?and how does an external shedulling handling work(every time interval?) with out internal yield.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StratifyLabs/sostest/issues/54#issuecomment-396894303, or mute the thread https://github.com/notifications/unsubscribe-auth/AF2jzU98XMpk2VkfFbT33AbMrSo67coRks5t8OyfgaJpZM4UdBeN .