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)

3,474 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.

Leave a Reply

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