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)

5,062 Comments

  1. Cuts through the usual marketing fluff that dominates this topic online, and a stop at startwithpurpose kept the same clean approach going, this is the kind of writing that respects the reader’s time rather than wasting it on repetitive setups before finally getting to the point at hand which is what most sites do.

  2. Now thinking the topic is more interesting than I had given it credit for, and a stop at exploreideaswithpurpose continued that elevated interest, content that revives my curiosity about subjects I had set aside is doing genuine work in the structure of my interests and this site is providing that revivifying effect today actually.

  3. Reading this in the gap between work projects was a small but meaningful break, and a stop at findyourgrowthlane extended that gentle reset, content that provides genuine refreshment rather than just distraction during work breaks is content with a particular kind of utility and this site fits that role for me reliably during work days.

  4. Without comparing too aggressively to other sources this one stands out for the right reasons, and a look at learnandscale continued that distinctive quality, content that distinguishes itself through substance rather than style tricks is content with lasting differentiation and this site has clearly chosen substance based differentiation as its core editorial strategy.

  5. A welcome reminder that thoughtful writing still happens online, and a look at explorefreshgrowthideas extended that reassurance, the modern web makes it easy to forget that careful writing exists and finding sites that practice it is a small antidote to the cynicism that builds up from too much exposure to algorithmic content.

  6. Reading this prompted me to dig into a related topic later, and a stop at buildsustainablemomentum provided some of the starting points for that follow up reading, content that triggers further exploration rather than satisfying curiosity completely is content with real generative energy and this site has plenty of that energy throughout it.

  7. Stayed longer than planned because each section earned the next, and a look at startnextlevelgrowth kept that pulling effect going across more pages, the kind of subtle pull that good writing exerts on attention is something I find harder and harder to resist when I encounter it on the open web today.

  8. Probably worth setting aside a longer block to read more carefully than I can right now, and a stop at exploreideaswithpurpose confirmed the longer block plan, the impulse to schedule dedicated time for a sites archive is itself a measure of trust and this site has earned that scheduling impulse from me clearly today actually.

  9. Reading this gave me a small jolt of recognition for an experience I thought was just mine, and a stop at startthinkingclearly produced more such jolts, content that universalises private experiences without flattening them is doing genuinely useful work and this site is providing that recognition function for me reliably across topics I read.

  10. Really appreciate that the writer did not assume I would read every other related post first, and a look at inobrisk kept that self contained feel going where each piece can stand alone, accessibility for new readers is a sign of generous editorial thinking and this site has clearly invested in that approach.

  11. Reading this confirmed that my time researching the topic in other places had not been wasted, and a stop at explorefreshthinkingnow extended the confirmation, when independent sources agree that is a useful signal and this site is one of the more reliable sources I have found for cross checking what I read elsewhere on similar subjects.

  12. Now setting aside time on my next free afternoon to read more from the archives, and a stop at startnextlevelgrowth confirmed that time will be well spent, the rare site whose archive deserves a dedicated reading session rather than just casual sampling is the kind of resource worth scheduling around and this one qualifies clearly.

Leave a Reply

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