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

  1. Heya! I’m at work surfing around your blog from my new apple
    iphone! Just wanted to say I love reading through your blog and look
    forward to all your posts! Keep up the fantastic work!

  2. Such writing is increasingly rare and worth supporting through attention, and a stop at huskkindle 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.

  3. However many similar pages I have read this one taught me something new, and a stop at flumelake added more new material, content that contributes genuinely fresh information rather than recycling what is already widely available is content with real informational value and this site is providing that informational freshness at a notable rate.

  4. Saving this link for the next time someone asks me about this topic, and a look at grovefalcon expanded what I will be sharing with them, this is the kind of resource that makes a real difference when you are trying to point a friend to something useful and reliable rather than generic marketing pages.

  5. Thanks for putting in the work to make this approachable, plenty of sites cover the same ground but most do it badly, and a quick visit to helmkit confirmed this one stands apart, simple language and useful examples without anyone trying to sell me anything along the way which I really appreciated.

  6. Looking through the archives suggests this site has been doing this for a while at this level, and a look at flankivory confirmed the long term consistency, sites that have maintained quality across years rather than just a recent stretch are sites with serious editorial discipline and this one has clearly been at it for a while.

  7. Once you start reading carefully here it is hard to go back to lower quality alternatives, and a stop at iconflank reinforced that ratchet effect, the way good content raises standards is real over time and this site has clearly contributed to raising my expectations for what is possible in writing on the topic generally.

  8. Hi there to every body, it’s my first pay a quick visit of this website; this
    blog carries amazing and truly good data designed for visitors.

  9. Appreciate how nothing here feels copied or pieced together from other places, the voice is consistent and the tone stays human, and after I checked oasiscrate I noticed the same style holds, which is a small detail but it makes the whole experience feel personal rather than like another generic site.

  10. KennethBew KennethBew

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

  11. Felt energised after reading rather than drained, which is unusual for online content these days, and a look at guavaflank continued that good feeling, content that leaves you better than it found you is rare and worth bookmarking when you stumble across it for the first time today or any other day really.

  12. Felt the post was written for someone like me without explicitly addressing me, and a look at herbfife produced the same fit, when content lands on its target without pandering you know the writer has done careful audience thinking rather than relying on demographic targeting or interest signals to do the work of editorial decisions.

  13. Liked that the post resisted a sales pitch ending, and a stop at idleflint maintained the no pitch approach, content that ends without trying to convert me into a customer or subscriber is content that has confidence in its own value and this site is clearly playing the long game on reader trust.

  14. Now adjusting my mental model of how the topic fits into the broader landscape, and a look at idleflint 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.

  15. If a friend asked me where to read carefully on the topic I would send them here without hesitation, and a look at gambitgulf confirmed the recommendation strength, the directness of my recommendation reflects how confident I am in the quality and this site has earned undiluted recommendations from me across multiple recent conversations actually.

  16. A relief to read something where I did not have to fact check every claim mentally, and a look at bettershoppingchoice continued that reliable feeling, sites where I can lower my guard and trust the content are rare and this one is earning that trust paragraph by paragraph through consistent careful work behind the scenes.

  17. Saving the link for sure, this one is a keeper, and a look at draftglades 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.

  18. A relief to read something where I did not have to fact check every claim mentally, and a look at idleketo continued that reliable feeling, sites where I can lower my guard and trust the content are rare and this one is earning that trust paragraph by paragraph through consistent careful work behind the scenes.

  19. Found this via a link from another piece I was reading and the click was worth it, and a stop at idleketo extended the value across more material, the open web still rewards clicking through citations when the underlying writers care about each other work and this site clearly belongs to that network.

  20. Going to share this with a friend who has been asking the same questions for a while now, and a stop at herbharp added a few more pages I will pass along too, this is the kind of generous information that earns a small thank you from me right now and again later this week.

  21. A clean piece that knew exactly what it wanted to say and said it, and a look at venxari maintained the same clarity of intention, knowing the goal of a piece before writing is something most blog content lacks and the clarity of purpose here shows up in every paragraph for any careful reader to notice.

  22. Easy to recommend, the content speaks for itself without needing additional praise from me, and a stop at livzaro 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.

  23. Appreciated how the writer anticipated the questions a reader might have along the way, and a stop at clipchoice 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.

  24. If I were to recommend a starting point for the topic this site would be near the top of my list, and a stop at igloohaze reinforced that recommendation status, the small list of starting point recommendations I keep for friends asking about topics is short and this site is now firmly on it.

  25. Liked the careful word choice throughout, every term seemed picked for a reason rather than thrown in casually, and a stop at gulfflux continued that precise style, this kind of attention to small details is what separates careful writing from the usual rushed content that dominates blog spaces today across pretty much every topic I follow.

  26. The lack of unnecessary jargon made the post accessible without sacrificing accuracy, and a look at elevateddailyclickping continued in the same accessible style, technical topics often hide behind specialised vocabulary but here the writer trusts the reader to keep up with plain language and that trust pays off nicely throughout the entire post.

  27. Worth flagging this site to a few specific friends who would appreciate the editorial sensibility, and a look at yieldmart 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.

  28. One of the more thoughtful posts I have read recently on this topic, and a stop at tirlumo added even more weight to that impression, this is genuinely good content that holds its own against far better known sites in the same space without trying to imitate any of them at all which I appreciate.

  29. Now considering writing a longer note about the post somewhere, and a look at urbanrivo added more material for that note, content that prompts me to write rather than just consume is content with generative energy and this site is producing that generative effect for me at a higher rate than most sources.

  30. Found something quietly useful here that I expect to return to, and a stop at melvizo added more of the same, content with quiet utility ages well in a way that flashy hot takes do not and I have learned to weight quiet utility much higher when deciding what to bookmark for later use.

  31. Reading this post made me realise I had been settling for lower quality elsewhere, and a look at herongait 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.

  32. Walked away in a slightly better mood than when I started reading, that says something about the writing, and a stop at gapherb kept that going, content that leaves you feeling more capable rather than overwhelmed is the kind I keep coming back to again and again over the years and across many topics.

  33. Skipped to a specific section because I knew that was the question I had, and the answer was clean, and a stop at knackpacts similarly delivered targeted answers without burying them, content engineered for readers who arrive with specific needs rather than open ended browsing is increasingly valuable in a search heavy reading environment.

  34. A piece that suggested careful editing without showing the marks of the editing, and a look at clockbrace 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.

  35. Liked the balance between depth and brevity, never too shallow and never too long, and a stop at tirnexo kept the same balance going across the rest of the site, this is one of the harder skills in writing and the team here clearly has it figured out very well indeed across every page.

  36. Reading this post made me realise I had been settling for lower quality elsewhere, and a look at herongait 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.

  37. After several visits I am now confident this site is one to follow seriously, and a stop at buyplusshop reinforced that confidence, the gradual building of trust through repeated quality exposures is the only sustainable way to develop reader loyalty and this site is building that loyalty in me through patient consistent work consistently.

  38. Genuine reaction is that this site clicked with how I like to read, and a look at featlake kept that comfortable fit going, sometimes you find a place online whose editorial decisions just align with your preferences and when that happens it is worth recognising and supporting through repeat engagement consistently going forward.

  39. If quality blog writing is dying as people sometimes claim then this site is one piece of evidence that it has not died yet, and a look at foilfrost extended that evidence, the broader cultural question about online writing has empirical answers in specific sites and this one is contributing to a more optimistic answer overall.

  40. Worth bookmarking and sharing with anyone interested in the topic, that is my honest take, and a stop at firminlet reinforces that, the kind of generous resource that makes the open web feel worth defending against the constant pressure to retreat into walled gardens and curated feeds today everywhere I look across all my devices.

  41. Bookmark folder reorganised slightly to make this site easier to find, and a look at shoprova 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.

  42. Picked this site to mention to a colleague who would benefit, and a look at shopwidestore added more material I will pass along, recommending sites to colleagues is a higher bar than recommending to friends because the professional context demands more careful curation and this site cleared the professional bar without me having to think.

  43. Will share this on a forum I am part of where it will be appreciated by others working in the same area, and a look at dealzaro suggests there is more here worth passing along too, definitely a generous resource that deserves a wider audience than it probably has today across the open internet.

  44. Came here from a search and stayed for the side links because they were that interesting, and a stop at tirnexo 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.

Leave a Reply

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