Skip to content

Ex 1 – Dedicated Operating Systems – INE5424 – UFSC

Exercise 1
Idle-waiting Thread Joining
– It have as an objective to change the method “join” of a Thread. It was implemented like this:

[code lang=”c”] while(_state != FINISHING)
yield();
[/code]

This method consist in verify the state of the Thread that is joined, if the state is different from FINISHING, it calls yield(). This solution cause an overhead, because it do this verification all the time that the process is Phased. We should implement a new function, that don`t cause this overhead.

Modified files:
thread.cc
Thread.h

EPOS with our solution.
Steps, and explanation about other solutions (PORTUGUESE)

7,859 Comments

  1. Worth a slow read rather than the fast scan I usually default to, and a look at buildprogresswithintent earned the same slower pace from me, content that resets my reading speed downward is content with substance worth absorbing and this site has produced that effect on me multiple times now over the last week here.

  2. Now appreciating that the post left me with enough to say in a follow up conversation, and a look at ardenburst added more material for those follow ups, content that prepares me for related conversations rather than just informing me alone is content with social utility and this site provides that social armament reliably for me.

  3. Closed my email tab so I could read this without interruption, and a stop at buyrova earned the same protected attention, when content is good enough to defend against the usual digital distractions you know it deserves better than the half attention most online reading gets in a typical busy day.

  4. Solid little post, the kind that does not need to be flashy because the substance is doing the work, and a look at minimmoss kept that quiet confidence going across the site, this is what writing looks like when the writer trusts the content to land on its own without theatrics or unnecessary attention seeking behaviour.

  5. Glad I clicked through from where I did because this turned out to be worth the time spent, and after dealvilo I had a fuller picture, the kind of content that earns its visitors through delivering value rather than chasing them through aggressive advertising or constant pop ups appearing everywhere on the screen lately.

  6. Люди подскажите Муж просто умирает на глазах Дети боятся заходить в комнату Платная клиника просит бешеные деньги Короче, спасла только госпитализация — наркологический стационар цена адекватная Провели полную детоксикацию В общем, вся инфа по ссылке — стационар для наркоманов https://narkologicheskij-staczionar-moskva-bny.ru Не ждите пока станет хуже Перешлите тем кто в беде

  7. A quiet kind of confidence runs through the writing, and a look at pilotlobe carried that same understated assurance, confidence without bragging is the most attractive register for online writing and the writers here have clearly developed it through practice rather than affecting it through stylistic tricks that would feel hollow eventually.

  8. Now setting this aside as a model of how to write thoughtfully on the topic, and a stop at directioncrafting extended that model status, content that becomes a reference for how a kind of writing should be done is content with influence beyond its own readership and this site is reaching that level for me clearly today.

Leave a Reply

Your email address will not be published. Required fields are marked *