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)

3,860 Comments

  1. Reading this site over the past week has changed how I evaluate content in this space, and a look at inspiredhomelifestyle extended that recalibration, the standards I bring to reading on the topic have shifted upward as a direct result of regular exposure to this kind of work and that shift will outlast any single reading session.

  2. Beats most of the alternatives on the topic by a noticeable margin, and a look at strengththroughstrides did not change that at all, this is one of the better corners of the open internet for this kind of content and I am glad I clicked through rather than skipping past quickly like I usually do.

  3. Reading this confirmed something I had been suspecting about the topic, and a look at coilclose pushed that confirmation toward greater confidence, content that lines up with independently held intuitions earns a special kind of trust and I will return to writers who consistently land that way for me without overselling positions.

  4. Big thanks to whoever wrote this, you saved me a lot of time hunting for the same info on other sites, and a stop at freshguilds only added more useful detail without going off topic, that kind of focus is honestly hard to come across these days when most posts wander everywhere.

  5. trendandbuy trendandbuy

    Even across multiple posts the writers voice has remained consistent in a way I appreciate, and a stop at trendandbuy continued that voice, sites that maintain editorial consistency across many pieces have something most sites lack and this one has clearly worked out how to keep its voice steady across what reads as a growing archive.

  6. Solid quality, the kind of work that holds up to a careful read rather than a quick skim, and a quick look at amplebench kept that standard going strong, content that rewards attention rather than punishing it is something I appreciate more and more these days online across nearly every topic I follow.

  7. A piece that suggested careful editing without showing the marks of the editing, and a look at boundboard continued that invisible polish, the best editing disappears into the prose and this site reads as having been edited with skill that does not announce itself which is the highest compliment I can offer any blog content.

  8. Came back to this twice now in the same week which is unusual for me, and a look at galafactors suggested I will keep coming back, the kind of post that earns repeated visits rather than one and done reading is the gold standard for content quality and this site clearly hit that standard.

  9. Reading this post made me realise I had been settling for lower quality elsewhere, and a look at byrdclap extended that recalibration, content that exposes how much I had been accepting in adjacent sources is content with calibrating effect on my standards and this site is performing that calibration function across topics for me reliably.

  10. Picked up something useful for a side project, and a look at refinedlivingessentials added another piece I will incorporate, content that connects to specific projects I am working on is content with practical utility and the practical utility of this site is showing up across multiple posts I have read in the last hour or so.

Leave a Reply

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