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,211 Comments

  1. Generally I find the content on similar topics frustrating in specific ways and this post avoided all of them, and a look at wildwoodartisan continued that frustration free experience, content that sidesteps the standard failure modes of its genre is content with editorial awareness and this site has clearly studied what fails elsewhere consistently.

  2. Now adjusting my mental model of how the topic fits into the broader landscape, and a look at clippoise extended that adjustment, content that affects my structural understanding rather than just my factual knowledge is content with deeper impact and this site is providing those structural updates at a meaningful rate consistently across topics.

  3. Worth flagging this site to a few specific friends who would appreciate the editorial sensibility, and a look at nextgenerationlifestyle added more pages I will mention to them, recommending sites to specific people requires understanding both the site and the person and this site is making those personalised recommendations easy and natural for me.

  4. The conclusions felt earned rather than tacked on at the end like an afterthought, and a look at graingrove kept that careful structure going, you can tell when a writer has thought about the shape of their post versus just letting it ramble out and hoping for the best at the end which most do.

  5. Once I trust a site this much I tend to read everything they publish and that is the trajectory I am on with this one, and a stop at brightpineemporium confirmed the trajectory, the rare progression from interested reader to comprehensive reader is something only certain sites earn and this one is earning that progression rapidly.

  6. Quietly building a case in my head for why this site deserves more attention than it currently seems to receive, and a look at micamarket reinforced the case, the gap between quality and recognition is a recurring frustration in independent online content and this site is one of the cases that seems particularly egregious to me today.

  7. Came here from a search and stayed for the side links because they were that interesting, and a stop at bluepeakdesignhouse took me even further into the site, the kind of organic exploration that good content invites is something most sites kill through aggressive interlinking and pushy navigation choices rather than relying on quality.

  8. More original than the recycled takes I keep finding on the topic elsewhere, and a quick look at draftcradle confirmed it, the kind of site that has its own voice rather than echoing whatever is trending which makes it stand out as a refreshing change from the usual rotation of generic content I see daily.

  9. Even from a single post the editorial care is clear, and a stop at sunwavecollection extended that care across more pages, the kind of attention to quality that shows up in every paragraph is what separates serious sites from the rest and this one has clearly invested in that paragraph level attention across what I have read.

  10. Reading this in a moment of low energy still kept my attention, and a stop at edenfair continued that engagement under suboptimal conditions, content that survives the reader being tired is content with extra reserves of pull and this site has the kind of writing that holds up even when I am not at my reading best.

  11. Now sitting with the thoughts the post triggered rather than rushing on to the next thing, and a stop at wildwoodartisan extended that reflective pause, content that earns time for thought after closing the tab is content of higher value than the merely interesting and this site has clearly produced that lasting effect today.

  12. Really appreciate the absence of stock photos that have nothing to do with the content, and a quick visit to blueharborbloom maintained the same restraint, visual filler is a tell that the writing cannot stand on its own and the lack of it here suggests the team has confidence in their content quality alone.

  13. Glad the writer did not feel the need to argue with imaginary critics in the post itself, and a stop at mountainwindstudio kept the same focused approach going, defensive writing wastes the reader time and confidence on positions that did not need defending and this post has clearly avoided that common failure.

  14. Following a few of the internal links revealed more posts of similar quality, and a stop at globalshoppingzone added more to that growing pile, sites where internal links lead to more good content rather than to more of the same recycled material are sites with depth and this one has clearly built that depth carefully.

  15. However selective I am about new bookmarks this one made it past my filter, and a look at draftcradle confirmed the bookmark was worth the slot, the precious slots in my permanent bookmark folder are difficult to earn and this site earned one without making me think twice about whether the slot was justified by the quality.

  16. A piece that prompted a small mental rearrangement of how I order related ideas, and a look at edenfair extended that rearranging effect, content that affects the structure of my thinking rather than just adding to it is content with the deepest kind of impact and this site is reaching that depth for me today.

  17. Anyone curious about this topic would do well to start here, the foundation laid is solid, and a stop at mountainwindstudio would round out their understanding nicely, this is the kind of resource I would point a friend toward without hesitation if they asked me where to begin learning about anything in this area.

  18. Reading this in a moment of low energy still kept my attention, and a stop at pinecrestmodern continued that engagement under suboptimal conditions, content that survives the reader being tired is content with extra reserves of pull and this site has the kind of writing that holds up even when I am not at my reading best.

  19. Top tier post, the kind that makes you want to share the link with friends working in the same area, and a stop at flicklegend only made me more confident in doing that, this site is one of the better resources I have seen on the topic recently across both new and older posts.

  20. creativechoicehub creativechoicehub

    Good post, the kind that respects the reader by getting to the point quickly without skipping the details that matter, and a short look at creativechoicehub confirmed that approach is consistent across the site which is rare to find online these days, definitely a place I will return to soon.

  21. Probably worth setting aside a longer block to read more carefully than I can right now, and a stop at cobaltcellar 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.

  22. Coming back to this one, definitely, and a quick visit to linenguild only made me more sure of that, the kind of writing that makes you want to set aside time later rather than rushing through it now while distracted by everything else competing for attention on the screen today across so many tabs.

  23. Liked how the writer used real examples instead of theoretical ones to make the points stick, and a stop at knackaltar added even more concrete examples, this is the kind of practical approach that respects readers who actually want to apply what they learn rather than just nodding along passively without doing anything useful.

  24. The tone stayed consistent across the whole post which is harder than it looks for longer pieces, and a look at bluestonerevival continued the same voice, this kind of editorial consistency is a sign of either a single careful writer or a tightly run team and either is impressive today across the broader media environment.

  25. Better signal to noise ratio than most places I check on this kind of topic, and a look at wildtreasurestore kept that going, every paragraph here carries something worth reading rather than padding out the page to hit some arbitrary length target that search engines reward but readers ignore as soon as they notice it.

  26. Just want to recognise that someone clearly cared about how this turned out, and a look at micapact confirmed that care extends across the broader site, you can feel the difference between content shipped to hit a deadline and content released because the writer was actually proud of the result for once.

  27. Pleasant surprise, the post delivered more than the headline promised, and a stop at bluestonerevival continued that pattern of under promising and over delivering, the rarest combination on the modern web where most content does the opposite by promising the world and delivering thin recycled summaries instead each time you click on something interesting.

  28. Skipped the related products section because there was none, and a stop at knackaltar also lacked any aggressive monetisation, content that is not constantly trying to convert me into a customer or subscriber is content that has confidence in its own value and that confidence shows up as a different reading experience.

  29. Liked that there was nothing performative about the writing, and a stop at goldfielddesigns continued that genuine quality, performative writing tries to be witnessed rather than read and the difference between performance and substance is huge for the careful reader and this site has clearly chosen substance every time clearly.

  30. Now considering carefully how to share this site with the right audience rather than broadcasting widely, and a look at draftglade extended that careful sharing impulse, content worth sharing carefully rather than spamming is content that has earned a higher kind of recommendation and this site has earned that careful shareability throughout pieces.

  31. Decided not to comment because the post said what needed saying, and a stop at trendypickshub continued that complete feel, content that does not invite obvious additions or corrections from readers is content that has been carefully considered and this site appears to consistently produce pieces that satisfy rather than provoke unnecessary follow ups.

  32. Started reading expecting to disagree and ended mostly nodding along, and a look at slowlivingessentials continued the pattern, content that wins agreement through evidence and reasoning rather than rhetorical force is the kind that actually shifts minds and this site clearly knows how to do that across what I have read so far.

  33. Honestly this kind of writing is why I still bother to read independent sites, and a look at findyourdirection extended that broader reflection, the few sites that justify continued attention to non algorithmic content are sites like this one and finding them periodically is enough to keep my reading habits oriented toward independent rather than aggregated content.

  34. Better than the average post on this subject by some distance, and a look at findyourstylehub reinforced that, you can tell within the first paragraph that the writer here actually cares about the topic rather than just covering it for the sake of having something to publish that week or that day.

  35. My usual response to new bookmarks is to forget them but this one I have already returned to twice, and a look at urbanwildgrove pulled me back a third time, the actual return rate to bookmarked sites is the real measure of value and this one is clearing that measure at a notable rate already.

  36. Reading this prompted me to subscribe to my first newsletter in months, and a stop at goldfielddesigns confirmed the subscribe was the right call, content that earns a newsletter signup is content that has cleared a higher trust bar than a casual visit and this site has clearly earned that level of commitment from me.

  37. Halfway through I knew I would finish the post, and a stop at trendypickshub also held me through to the end, content that signals its quality early and then sustains it is content with real internal consistency and this site has clearly figured out how to maintain quality from opening sentence through to closing thought.

  38. Reading this in the morning set a good tone for the day, and a quick visit to simpletrendstore kept that good tone going, content can do that sometimes when it hits the right notes and finding sites that consistently strike that tone is something I have learned to recognise and reward with regular visits.

  39. Glad to find a site whose links lead somewhere worth going rather than back to itself for SEO juice, and a stop at peacefulforestshop kept that generous outbound feel, citing other peoples work with real respect rather than just for ranking signals is a sign of an honest operation worth supporting going forward.

  40. Good clean post, no errors and no awkward phrasing that breaks the reading flow, and a stop at findyourstylehub kept the same standard, definitely the kind of editorial care that earns a return visit because it tells me the writer is paying attention to details that matter to readers rather than just rushing publication.

  41. Working through this site has been a small antidote to the shallow content that fills most of my reading time, and a stop at flickpassage extended that antidote function, sites that quietly improve the average quality of my reading by being themselves are sites worth supporting through return visits and recommendations consistently.

  42. Thanks for treating the topic with the seriousness it deserves without becoming pompous about it, and a stop at softskycorners continued that balanced treatment, the gap between earnest and self serious is huge and writers who can stay on the right side of it earn my respect when I find them online today.

  43. Useful information presented in a way that does not feel like a sales pitch, that is what I appreciated most, and a stop at edgecradle was the same, no upsell and no fake urgency just steady content laid out properly for someone trying to actually learn from it rather than just be sold to.

  44. Came here from a search and stayed for the side links because they were that interesting, and a stop at authenticglobalfinds took me even further into the site, the kind of organic exploration that good content invites is something most sites kill through aggressive interlinking and pushy navigation choices rather than relying on quality.

  45. In the middle of an otherwise scattered day this post landed as a moment of focus, and a stop at edgecradle extended that focused feeling across more pages, content that anchors a fragmented day rather than contributing to the fragmentation is content with real centring effect and this site is providing that anchoring function for me.

  46. Honestly this hits the sweet spot between detail and brevity, no rambling and no shortcuts, and a quick visit to grovepassage kept that going across the related pages, the kind of place that respects your attention without trying to grab it through cheap tactics or attention seeking design choices that get tired fast.

  47. Clean writing, easy to read, and never tries too hard to impress, that combination is harder to find than people think, and after my time on urbancloverhub I am sure this site treats its readers well, no flashy tricks just useful content done right which is honestly all I want online.

  48. growwithpurpose growwithpurpose

    Bookmark added without hesitation after finishing, and a look at growwithpurpose confirmed I should bookmark the homepage too rather than just this page, the rare site that earns category level trust rather than just single article approval is the kind I want to rely on across many different topics over time.

  49. Generally I do not leave comments but this post merits a small note, and a stop at lobbycommune extended that comment worthy quality, the urge to actively contribute to a sites community rather than passively consume from it is something specific content provokes and this site has provoked that engagement urge from me today.

Leave a Reply

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