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)

8,816 Comments

  1. Such writing is increasingly rare and worth supporting through attention, and a stop at muscatlarch extended that supportive attention across more pages, the conscious choice to spend time on sites that produce careful work rather than convenient consumption is itself a small form of patronage and this site is receiving that conscious patronage from me.

  2. Bookmark folder created specifically for this site, and a look at snaretoga confirmed the dedicated folder was the right call, dedicated folders for individual sites are a level of organisation I rarely deploy and this site has earned that level of dedicated tracking based on the consistency I have seen so far across sessions.

  3. Reading this prompted a brief but useful conversation with a colleague who happened to walk by, and a stop at tinklesaddle extended that conversational seed, content that becomes a starting point for in person discussion rather than ending in solitary reading is content with social generative energy and this site has plenty of it apparently.

  4. Liked the way the post got out of its own way, and a stop at draftglade extended that invisible craft, the best writing you barely notice while reading because it is doing its work without drawing attention to itself and this site has clearly mastered that disappearing act across the pieces I have read.

  5. Just one of those reads that left me feeling slightly more capable rather than overwhelmed, and a look at spryring kept that empowering feel going, the difference between content that builds the reader up and content that intimidates them is huge and this site clearly knows which side of that line to stand.

  6. Liked everything about the experience, from the opening through to the closing notes, and a stop at duetdrives extended that into more pages, finding a site where the editorial vision shows through every choice rather than feeling random is an increasingly rare experience and one I am glad to have today during this particular reading session.

  7. Decided not to comment because the post said what needed saying, and a stop at solotoffee 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.

  8. Appreciated how the writer anticipated the questions a reader might have along the way, and a stop at studiotrader continued that thoughtful approach, you can tell when content has been edited with the reader in mind versus just published as a first draft and this is clearly the former approach across what I read.

  9. A genuine compliment to the writer for keeping the post focused on what mattered, and a look at ranchomen continued that disciplined focus, focus is a editorial choice that compounds across many small decisions and this site has clearly made those small decisions consistently across what I have read so far this week here.

  10. More original than the recycled takes I keep finding on the topic elsewhere, and a quick look at llamapatio 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.

  11. Bookmark folder reorganised slightly to make this site easier to find, and a look at muscatlumen earned the same accessibility upgrade, the small organisational moves I make for sites I expect to return to often are themselves a signal of how much I trust them and this site triggered those moves naturally.

  12. Solid post, the structure is easy to follow and the language stays simple even when the topic gets a bit more involved, and a look at siennathrift kept that same standard going, so I left feeling like the time spent here was actually worth something for once which is rare lately.

  13. Came in confused about the topic and left with a much firmer grasp on it, and after shamrockswan I felt I could explain this to someone else without hesitation, that is the gold standard for any educational content and most sites simply fail to reach it ever which is unfortunate but true.

  14. Now recognising the editorial wisdom of letting some questions remain open at the end, and a look at draftlake continued that intellectual honesty, content that does not force closure on contested questions is content that respects the limits of knowledge and this site has clearly developed the maturity to know when to leave space.

  15. Refreshing change from the usual sites covering this topic, no clickbait and no padding, and a stop at shrinetender confirmed the difference, this place clearly has its own voice rather than copying the formulas everyone else uses to chase clicks online which is becoming increasingly rare these days across nearly every popular subject.

  16. Reading this in a moment of low energy still kept my attention, and a stop at tulipsedan 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.

  17. Refreshing to read something where the words actually mean something instead of filling space, and a stop at grovefarms kept that going, the writing here trusts the reader to follow along without endless repetition or constant reminders of what was already said earlier in the post which I appreciate.

  18. Honestly thank you to whoever wrote this because it scratched an itch I had not quite been able to articulate, and a stop at solostarlit kept that satisfying feeling going, the kind of writing that meets unspoken needs is special and this site clearly has writers who understand their readers more than most do today.

  19. Approaching this site through a casual link click and being surprised by what I found, and a look at solidvector extended the surprise, the rare experience of stumbling into excellent independent content rather than predictable mediocrity is one of the actual remaining pleasures of casual web browsing and this site provided it cleanly.

  20. CharlesChism CharlesChism

    В данной статье рассматриваются проблемы общественного здоровья и социальные факторы, влияющие на него. Мы акцентируем внимание на значении профилактики и осведомленности в защите здоровья на уровне общества. Читатели смогут узнать о новых инициативах и программах, направленных на улучшение здоровья населения.
    Открой скрытое – clinica plus

  21. Honest reaction is that this is the kind of writing I would defend in a conversation about good blog content, and a look at qalmizo reinforced that, the rare site whose work I would actively recommend rather than just tolerate is the kind I want to support through return visits regularly.

  22. Glad the writer kept this short rather than padding it out, the points stand on their own without needing extra context, and a look at suburbsurge kept the same approach going, brevity is a sign of confidence in the substance and the team here clearly trusts their content to land without filler.

  23. Recommend this to anyone who values clear thinking over flashy presentation, and a stop at logicllama continued in the same understated way, this site has its priorities in the right place which makes it worth supporting through repeat visits and recommendations rather than just one passing read today before moving on quickly elsewhere.

  24. PabloGer PabloGer

    Эта публикация обращает внимание на важность профилактики зависимостей. Мы обсудим, как осведомленность и образование могут помочь в предотвращении возникновения зависимости. Читатели смогут ознакомиться с полезными советами и ресурсами, которые способствуют здоровому образу жизни.
    Смотрите также – наркологическая клиника в белгороде

  25. Well done, the writing is professional without being stiff, and the topic is treated with care, and a look at studiosalute reflected that approach, the kind of site I would point a colleague to if they asked for a reliable starting point on this topic in the future without any hesitation at all.

  26. Honestly enjoyed not being sold anything for the entire duration of the post, and a look at sheentiny kept that pleasant absence going across more pages, content that exists for its own sake rather than as a funnel to a paid product is increasingly rare and worth supporting where I can find it.

  27. Reading this in segments because the day was busy, and the post survived the fragmented attention well, and a stop at mauvepeach held up similarly under interrupted reading, content that can withstand modern distracted reading patterns rather than requiring a perfect block of focused time is increasingly the kind I prefer.

  28. This one is staying open in a tab for the rest of the day so I can come back and re read certain parts, and a look at draftlog suggests I will be doing the same with a few more pages here too, this is going to be a deep dive over the coming hours.

  29. Worth pointing out that the post avoided the temptation to summarise everything at the end, and a look at silovault continued that confident closing approach, content that trusts readers to retain the substance without being reminded of it at the end is content that respects the reader and this site practices that respect.

  30. Reading this confirmed that the topic deserves more careful attention than it usually gets, and a stop at summitshire extended that elevated framing, content that raises the appropriate weight of a subject without being preachy about it is serving a quiet but important editorial function for the broader cultural conversation about it.

  31. Saving the link for sure, this one is a keeper, and a look at tyrantvolume confirmed I should bookmark the entire site rather than just this page, the consistency across what I have seen so far suggests there is a lot more here worth coming back for soon when I have more time.

  32. Reading this with a fresh mind in the morning brought out details I might have missed in the afternoon, and a stop at draftglades earned the same fresh attention, content that rewards being read at full attention rather than at energy lows is content with real density and this site has that density consistently.

  33. Now noticing that the post did not mention the writer at all, focus stayed on the topic, and a look at voguestrait continued that author absent quality, content that disappears the writer to focus on the substance is a particular kind of generosity and this site has clearly chosen the substance over the personality consistently.

  34. Just nice to read something that does not feel like it was assembled from a content brief, and a stop at thatchvista kept that handcrafted feel going, you can tell when a real human with real understanding is behind the words versus a templated piece churned out for an algorithm to find.

  35. Just want to flag that this was useful and not bury the appreciation in caveats, and a look at mauvepeach earned the same direct praise, recognising good work without hedging it with criticism is something I try to practice because over qualified compliments tend to read as backhanded and miss the point sometimes.

  36. Approaching this with the usual skepticism I bring to new sites and being slowly persuaded, and a stop at temposofa continued that gradual persuasion, the careful path from skeptical reader to genuine fan is the only one I trust and this site has walked me along that path through patient consistent quality across pieces.

  37. Now considering carefully how to share this site with the right audience rather than broadcasting widely, and a look at simbasienna 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.

  38. Speaking honestly this is among the better discoveries of my recent browsing, and a stop at draftglades reinforced that discovery quality, the ranking of recent discoveries is informal but meaningful and this site has placed near the top of that ranking based on the consistency of quality across what I have already read carefully.

  39. Different in a good way from the cookie cutter content that fills most blogs covering this area, and a stop at loneload kept showing me why, original thoughtful writing exists if you know where to look and this site has earned a place on my short list of those rare exceptions worth defending.

  40. Strong recommendation from me, anyone curious about the topic should make time for this, and a look at simbasienna only sharpens that recommendation further, the kind of resource that holds up against careful scrutiny rather than crumbling at the first critical question is rare and worth pointing other people toward when the topic comes up.

  41. Will be sharing this with a couple of people who care about the topic, and a stop at summitshire added more material worth passing along, the kind of site that is generous with quality content and does not make you jump through hoops to access it which is appreciated more than the team probably realises.

  42. A piece that did not lean on the writer credentials or institutional backing, and a look at draftport maintained the same focus on substance, content that earns trust through quality rather than through name dropping is the kind I find most persuasive and this site is clearly playing on the substance side of that distinction.

  43. Now considering carefully how to share this site with the right audience rather than broadcasting widely, and a look at draftport 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.

  44. Now feeling the rare pleasure of trusting a source completely on first encounter, and a look at vinylslogan extended that initial trust into something more durable, the calibration of trust to evidence is something I do informally and this site has earned high trust through the cumulative weight of multiple consistently good posts already.

  45. Reading this confirmed something I had been suspecting about the topic, and a look at uppersharp 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.

  46. Closed the tab with a small sense of finality rather than the usual rushed exit, and a stop at qalnexo produced the same considered closing, when reading ends with deliberate satisfaction rather than impatient skip you know the time was well spent and this site is producing those satisfying endings consistently across what I read.

  47. Thanks for keeping things clear and to the point, that is honestly hard to find online these days, and after reading through tallysubdue the message stayed consistent which makes me trust the information being shared more than I usually do on similar pages that cover this same kind of topic.

  48. Quietly the writers approach to the topic differs from the dominant takes I have been encountering, and a stop at rivqiro extended that distinctive approach, content that maintains a different perspective without explicitly arguing against the dominant ones is content with confident editorial identity and this site has that confidence throughout pieces.

Leave a Reply

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