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

  1. 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 urbanhillfashion 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.

  2. brightvalueworld brightvalueworld

    A piece that took its time without dragging, and a look at brightvalueworld kept the same patient pace, the difference between unhurried and slow is a fine editorial distinction and this site has clearly found the unhurried side without slipping into the slow side which would have lost me as a reader quickly otherwise.

  3. Glad to have another data point on a question I am still thinking through, and a look at brightdeltafabrics added two more, content that acknowledges its place in a wider conversation rather than pretending to settle the question alone is intellectually honest in a way that I wish was more common across the open web.

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

  5. Marcussmobe Marcussmobe

    При поступлении вызова нарколог незамедлительно приезжает на дом для проведения детального первичного осмотра. Врач собирает краткий анамнез, измеряет жизненно важные показатели — пульс, артериальное давление, температуру — и оценивает степень алкогольной интоксикации. Эти данные являются основой для разработки индивидуального плана лечения, позволяющего подобрать наиболее эффективные методы детоксикации.
    Детальнее – http://vyvod-iz-zapoya-tula00.ru/vyvod-iz-zapoya-anonimno-tula/

  6. Honestly the simplicity of the explanation made the topic click for me in a way other writeups had not, and a look at domelegend continued that clarity into related areas, when a writer gets the level of explanation right the reader does the heavy lifting themselves and the post just enables it.

  7. Took a chance on the headline and was rewarded, and a stop at uniquebuyoutlet kept the rewards coming as I clicked through, the kind of place where every link leads somewhere worth the click is a small luxury on the modern web where so many sites are mostly empty calories disguised as content.

  8. 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 wildmeadowstudio kept that same standard going, so I left feeling like the time spent here was actually worth something for once which is rare lately.

  9. 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 softforestfabrics 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.

  10. Bookmark earned and the bookmark feels like a permanent addition rather than a maybe, and a look at timelessharveststore confirmed that permanent status, the difference between durable bookmarks and ephemeral ones is something I have learned to feel quickly and this site triggered the durable feeling almost immediately during my first read here.

  11. Adding this site to my regular reading list, the post earned that on its own, and a quick stop at wildspireemporium sealed the decision, the kind of place worth checking back with from time to time because it consistently produces material that holds up against a critical reading too which I really value.

  12. Liked the way the post balanced confidence and humility, and a stop at domelegend 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.

  13. Thanks for sharing this with the open internet rather than locking it behind a paywall like so many sites do now, and a stop at urbanlegendstore kept the same vibe going, generous helpful and clearly written by someone who actually wants people to learn from it rather than just charge them.

  14. Easy to recommend, the content speaks for itself without needing additional praise from me, and a stop at larkcliff 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. Quality writing that respects the reader’s intelligence without overloading them, and a quick look at urbanharvesthub reflected that approach, a balanced thoughtful site that earns trust by being consistent rather than by shouting about how trustworthy it is which is the usual approach online sadly across most content categories.

  16. Compared to the usual results for this kind of search this site stands well above the average, and a quick visit to urbanridgeemporium kept the standard high, you can tell within seconds whether a site is going to waste your time or actually deliver and this one clearly delivers without any false starts.

  17. Decided this was the kind of site I would defend in a discussion about good blog content, and a stop at softpetalstore reinforced that, very few sites earn active defence rather than passive consumption and this one has clearly crossed that threshold for me without needing any explicit pitch from the writers themselves either.

  18. Found this via a link from another piece I was reading and the click was worth it, and a stop at portmill 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.

  19. Worth saying that the prose reads naturally without straining for style, and a stop at fleetessence maintained the same unforced quality, writing that achieves elegance without effort is the highest tier and this site has clearly worked out how to land that effortless quality consistently rather than only on the writers best days.

  20. My friends would appreciate a few of these posts and I will be sending links accordingly, and a look at trendmarketzone added more pages to my share queue, content that earns shares to specific people in specific contexts is content with social utility and this site is generating those targeted shares from me consistently lately.

  21. Adding this site to my regular reading list, the post earned that on its own, and a quick stop at brightwindcollections sealed the decision, the kind of place worth checking back with from time to time because it consistently produces material that holds up against a critical reading too which I really value.

  22. Decided this was the best thing I had read all morning, and a stop at urbanridgeemporium kept that ranking intact, ranking my reading is something I do mentally throughout the day and the top rank is competitive and not easily won but this site won it without needing to overstate its claims for that.

  23. Looking forward to seeing what gets published next month, and a look at crestsunshine extended that anticipation across the broader site, finding myself looking forward to a sites future content rather than just consuming its existing content is a stronger commitment level than I usually reach with new finds and this site triggered that.

  24. Came across this looking for something else entirely and ended up reading it through twice, and a look at candidpalace pulled me deeper into the site than I planned, the writing has a way of holding attention without resorting to manipulative cliffhangers or vague promises that never get delivered later down the page.

  25. Approaching this with the usual skepticism I bring to new sites and being slowly persuaded, and a stop at crestsunshine 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.

  26. Bookmark added in three places to make sure I do not lose the link, and a look at fleetmarina got the same redundant treatment, sites I am afraid to lose are the rare keepers and this is clearly one of them based on what I have read so far across this and a couple of related posts.

  27. A piece that read as if the writer was thinking carefully rather than just typing fluently, and a look at brightbrookmodern continued that considered quality, the difference between fluent typing and careful thinking shows up in writing and this site reads as the product of thought rather than just the product of language fluency apparently.

  28. Now realising the post solved a small problem I had been carrying for weeks, and a look at domemarina extended that problem solving function, content that connects to specific unresolved questions in my own life rather than just providing general interest is content with real practical impact and this site is providing that practical value.

  29. Quietly building a case in my head for why this site deserves more attention than it currently seems to receive, and a look at blueharborbloom 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.

  30. creativefashioncorner creativefashioncorner

    Closed the tab and immediately reopened it ten minutes later because I wanted to reread a part, and a stop at creativefashioncorner drew the same return, content that pulls you back after closing it is doing something well beyond the average and worth marking as exceptional in my mental catalogue of reliable sites.

  31. Reading this in the gap between work projects was a small but meaningful break, and a stop at noblecradle 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.

  32. Just dropping by to say thanks for the effort, it does not go unnoticed when a writer cares this much about the reader, and after I went through urbanwildfabrics I was certain this is one of the better corners of the internet for this particular kind of content which is genuinely refreshing.

  33. globalmarketcorner globalmarketcorner

    Generally I find the content on similar topics frustrating in specific ways and this post avoided all of them, and a look at globalmarketcorner 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.

  34. My professional context would benefit from having this kind of resource available, and a look at leafdawn extended the professional applicability, the rare site that contributes meaningfully to professional work rather than just personal interest is content with multiplied value and this one is providing that professional utility consistently across multiple pieces.

  35. Came away feeling slightly smarter than I was when I started, that is a real win, and a stop at sunrisetrailmarket added a bit more to that, the rare site that actually transfers some of its knowledge to the reader in a way that sticks rather than just creating an illusion of learning briefly.

  36. Bookmark added with a small note about why, and a look at flickaltar prompted another bookmark with another note, the bookmarks I annotate are the ones I expect to return to deliberately rather than stumble into and this site is generating annotated bookmarks at a higher rate than my usual content sources by some margin.

  37. Felt the post had been written without using a single buzzword, and a look at freshwindemporium 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.

  38. Liked how the writer used real examples instead of theoretical ones to make the points stick, and a stop at clippoise 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.

  39. Reading this in segments because the day was busy, and the post survived the fragmented attention well, and a stop at micamarket 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.

  40. Liked that the post left some questions open rather than pretending to settle everything, and a stop at portpoise 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.

  41. Skipped the related links section thinking I had read enough and then came back to it later when curiosity got the better of me, and a stop at graingrove confirmed I should have just read it first, every section of this site appears to deserve careful attention rather than skipping past lazily.

  42. Now placing this in the same category as a few other sites I have come to trust, and a look at northernmiststore continued the placement decision, the small category of fully trusted sites is one I extend rarely and only after multiple positive reading sessions and this site has earned the category placement methodically over time.

  43. Once you find a site like this the search for similar voices begins, and a look at kitefoundry extended the search energy, finding a high quality reference point makes the gap between it and adjacent sources visible in a way it was not before and this site has provided that high reference point across multiple recent visits.

  44. globalmarketcorner globalmarketcorner

    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 globalmarketcorner 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.

  45. High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at sunwavecollection 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.

Leave a Reply

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