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

  1. Thanks for laying this out in a way that someone newer to the topic can follow, and a stop at ethicalglobalmarket kept that accessibility going, writing that meets readers at different experience levels without condescending is hard to do well and the writers here have clearly thought about who they are writing for.

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

  3. Comfortable reading experience throughout, no jarring tone shifts and no awkward formatting, and a look at croccocoa kept that smooth feel going, the kind of editorial polish that goes unnoticed when present but glaring when absent is something this site has clearly invested in across the broader content as well which deserves recognition.

  4. Honest take is that this was better than I expected when I clicked through, and a look at bowbotany reinforced that, the bar for online content has dropped so much that finding something thoughtful and well constructed feels almost noteworthy now which says more about the average than about this site itself.

  5. Stands out for actually being useful instead of just being long, and a look at consciousconsumerhub kept that going, length without value is the default mode of most blogs these days but this site has clearly chosen a different path which I respect a lot as a reader who values careful editing decisions like that.

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

  7. Liked that the post landed without needing to manufacture controversy or take a contrarian stance for attention, and a stop at intentionalclickpingcollective continued that grounded approach, content that earns attention through quality rather than provocation is the kind that builds long term trust rather than burning it on quick wins.

  8. If you scroll past this site without looking carefully you will miss something, and a stop at thoughtfulclickpingplatform extended that mild warning, the surface of the site does not advertise its quality loudly which means careful attention is required to recognise what is being offered here which is itself a kind of editorial signal.

  9. During a reading session that included several other sources this one stood out, and a look at blissbrick continued the standout quality, the side by side comparison of sources during research is a useful exercise and this site has been winning those comparisons for me consistently across multiple research sessions during the last week.

  10. Reading this gave me a small refresher on something I had partially forgotten, and a stop at urbanfieldgallery extended the refresher, content that strengthens existing knowledge rather than just adding new is content with a particular kind of consolidating value and this site is providing that consolidating function across multiple visits.

  11. Reading this prompted me to subscribe to my first newsletter in months, and a stop at ariabrawn 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.

  12. Pass this along to anyone you know dealing with similar questions, the answers here are clear, and a stop at balticbull adds even more useful material, this is the kind of resource that deserves to circulate widely rather than getting lost in the constant churn of new content online that buries good work daily.

  13. Came away with some new perspectives I had not considered before, and after urbaninspiredlivingstore those ideas felt more complete, the kind of content that stays with you a little while after reading rather than slipping out the moment you switch tabs and move on with your day to whatever comes next.

  14. Easy to recommend, the content speaks for itself without needing additional praise from me, and a stop at ariabrawn only adds more reasons to send people this way, the kind of generous resource that benefits its readers without demanding anything in return is increasingly rare and worth recognising clearly today across the broader open internet.

  15. Felt the writer was speaking my language without trying to imitate it, and a look at capeasana continued that natural fit, when a writers default voice happens to match what you find easy to read the experience feels frictionless and that is something I notice and remember about specific sites going forward.

  16. Got something practical out of this that I can apply later this week, and a stop at silverhorizoncollective added more details to think about, this is exactly the kind of content I bookmark for future reference rather than the throwaway listicles that dominate most search results these days for almost any common topic.

  17. Looking through other posts here the consistency is what makes the site valuable rather than any single piece, and a stop at urbaninspiredlivingstore extended that consistency observation, sites whose value lies in the ongoing pattern rather than in standout posts are sites I trust more deeply and this one has clearly built that kind of trust.

  18. Felt the post had been written without using a single buzzword, and a look at yovrisa continued that clean vocabulary, content free of jargon and trendy phrases reads better and ages better and this site has clearly committed to a vocabulary that will not feel dated in three years which is impressive editorially.

  19. Liked the way the post balanced confidence and humility, and a stop at refinedeverydaynecessities maintained the same balance, knowing when to assert and when to acknowledge uncertainty is a sign of mature thinking and the writers here have clearly developed that calibration through what I assume is years of careful work on their craft.

  20. Honest assessment is that this is one of the better short reads I have had this week, and a look at merniva reinforced that, the bar for short content is low because most of it sacrifices substance for brevity but this site manages both at once which is harder than it sounds for most writers attempting it.

  21. Looking at this objectively the editorial quality is hard to deny even setting aside personal taste, and a stop at stageofnations maintained the same objective quality, the gap between what I personally enjoy and what is objectively well crafted exists and this site clears both bars simultaneously which is rarer than it sounds.

  22. Reading this in the time it took to drink half a cup of coffee, and a stop at crustborn fit naturally into the second half, content that respects the rhythms of a typical morning is content with practical fit and this site has the kind of length and pacing that works for the way I actually read.

  23. Glad the writer did not feel compelled to cover every possible angle of the topic, focus is a virtue, and a stop at minimalmodernclickping reflected the same disciplined scope, knowing what to leave out is half of what makes good writing good and this post has clearly been edited with that principle in mind.

  24. Probably the best thing I have read on this topic in the past month, and a stop at softwildrose extended that ranking, the casual ranking of recent reading is informal but real and this site has been winning those rankings for me on this topic specifically over the last several weeks of regular reading sessions.

  25. Honestly impressed by the consistency of voice across what I have read so far, and a quick visit to globalmodernessentials continued that consistent feel, when a site reads like one careful person rather than a committee the experience is more rewarding for the reader who notices these subtle editorial details over time.

  26. Liked that the post left some questions open rather than pretending to settle everything, and a stop at amberdock continued that intellectual honesty, content that respects the limits of its own claims is more trustworthy than content that overreaches and this site has clearly figured out which positions it can defend confidently.

  27. Found this through a friend who recommended it and now I see why, and a look at iciclecrate only strengthened that recommendation in my own mind, word of mouth still works for content that actually delivers and this site is clearly earning recommendations the old fashioned way through quality rather than marketing.

  28. Reading this slowly to give it the attention it deserved, and a stop at micapacts earned the same slow read, choosing to read slowly is a small act of respect for content quality and very few sites earn that respect from me but this one did so without any explicit ask which is the cleanest way.

  29. Really thankful for posts that respect a reader’s time, this one does, and a quick look at elveglide was the same, no need to scroll through endless intros just to get to the actual content, that approach alone is enough reason to come back here regularly for the kind of writing offered.

  30. Going to come back when I have more time to read carefully, the post deserves more than a quick scan, and a stop at modernheritagegoods reinforced that, this is the kind of site that rewards a slower read which is hard to find in this fast paced corner of the internet but really worthwhile.

  31. High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at ethicalhomeandlifestyle kept that going, simple direct content that actually communicates something is harder to find than it should be and this is one of the rare places that gets it right consistently across many different posts.

  32. Robertkaw Robertkaw

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

  33. Now recognising that the post handled the topic with appropriate technical precision without becoming dry, and a stop at basketwharf continued that balance, technical precision and readability are often in tension and this site has clearly figured out how to maintain both at once which is one of the harder editorial achievements in the form.

  34. Will be coming back to this for sure, too much good content to absorb in one sitting, and a stop at wildleafstudio only added more pages I want to dig through, this site is going onto my regular rotation list because it consistently delivers something worth the visit lately rather than empty filler.

  35. A piece that demonstrated competence without performing it, and a look at timberfordmarket maintained the same self assured but unshowy register, the gap between competence and performance of competence is one I track and this site has clearly chosen to demonstrate rather than perform which I find much more persuasive as a reader.

  36. Decided to read more before commenting and the more I read the more I wanted to say something, and a stop at futurelivingmarketplace pushed that impulse further, when content provokes the urge to participate rather than just consume it is doing something quite specific and worth recognising clearly when it happens during reading.

  37. Really appreciate the lack of pop ups, modals, cookie banners stacking on top of each other, and a quick visit to timberfordmarket confirmed the same clean approach across the rest of the site, technical decisions about user experience are part of what makes content actually pleasant to engage with for sure.

  38. Now thinking about whether the writer might publish a longer form work I would buy, and a look at jollymart suggested the same depth would translate, content that makes me want to pay for related work in other formats is content that has earned commercial trust as well as attention trust and this site has both clearly.

  39. Easy to recommend, the content speaks for itself without needing additional praise from me, and a stop at curatedethicalcommerce only adds more reasons to send people this way, the kind of generous resource that benefits its readers without demanding anything in return is increasingly rare and worth recognising clearly today across the broader open internet.

  40. Found this through a search that was generic enough I did not expect quality results, and a look at norigamihq continued the surprisingly good experience, search engines occasionally still surface excellent independent content if you scroll past the obvious paid and high authority results which is reassuring to remember sometimes.

  41. Skipped the related products section because there was none, and a stop at carefullychosenluxury 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.

  42. Different feel from the algorithmically optimised posts that dominate the topic, and a stop at shorevendor reinforced that human touch, you can tell when a site is being run by someone who reads what they publish versus someone just hitting submit and moving on quickly to the next assignment without checking the result.

  43. Picked this for my morning read because the topic seemed worth the time, and a look at caskcloud confirmed the choice was right, my morning reading slot is precious and giving it to this site felt like a good investment rather than a waste which is a higher endorsement than I usually offer for content.

  44. Easy to recommend, the content speaks for itself without needing additional praise from me, and a stop at bowclutch only adds more reasons to send people this way, the kind of generous resource that benefits its readers without demanding anything in return is increasingly rare and worth recognising clearly today across the broader open internet.

  45. Reading this prompted me to send the link to two different people for two different reasons, and a stop at cerlix provided ammunition for a third share, content that suits multiple audiences without being generic enough to be useless to any of them is genuinely valuable and this site has that multi audience quality clearly.

  46. Worth flagging that the writing rewarded a second read more than I expected, and a look at elvegorge produced the same second read benefit, content with hidden depths that emerge only on careful rereading is rare in the modern blog space and this site has clearly invested in that level of compositional density throughout.

  47. Barrettlaurl Barrettlaurl

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

  48. If I had to summarise the editorial sensibility of this site in a few words it would be careful and human, and a look at caskcloud extended that summary feeling, capturing the essence of a sites approach in brief is hard but this site has a clear enough identity that the summary comes naturally enough.

Leave a Reply

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