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)

10,033 Comments

  1. Wow that was strange. I just wrote an incredibly long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say superb blog!

  2. Greate pieces. Keep writing such kind of info on your site.
    Im really impressed by it.
    Hey there, You’ve done a fantastic job. I will certainly digg it and in my view suggest to my friends.

    I’m confident they will be benefited from this web
    site.

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

  4. Excellent execution from start to finish, the post never loses its rhythm and the points stay sharp, and a quick stop at torzino kept the same level going, consistency like this across a site is the marker of a serious operation rather than a casual side project running on autopilot somewhere else.

  5. Now adding this site to a small mental group of recommendations I keep ready for specific kinds of inquiries, and a stop at claritymovesforward extended the recommendation readiness, content that I can confidently point friends and colleagues toward in specific contexts is content with real social utility and this site has that utility clearly.

  6. Granted I am giving this site more credit than I usually give new finds, and a look at capitalalliancebond continued earning that credit, the calibration of how much trust to extend after limited exposure is something I do carefully and this site has earned more trust on shorter exposure than most due to consistent quality across.

  7. Taking the time to read carefully here has been worthwhile for the past hour, and a look at unitystronghold extended the worthwhile reading, the calculation of return on reading time spent is something I do informally and this site has been producing positive returns across multiple sessions during the last week of regular visits and reads.

  8. Reading this confirmed that my time researching the topic in other places had not been wasted, and a stop at bondedcapitalway extended the confirmation, when independent sources agree that is a useful signal and this site is one of the more reliable sources I have found for cross checking what I read elsewhere on similar subjects.

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

  10. Reading this prompted me to send the link to two different people for two different reasons, and a stop at progresswithintention 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.

  11. Just nice to read something that does not feel like it was assembled from a content brief, and a stop at smartinsight 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.

  12. Will be back, that is the simplest way to say it, and a quick visit to claritycreatesenergy reinforced the decision, this site has earned a spot in my regular rotation alongside a few other reliable places I check when I want something genuinely informative without all the usual modern web noise getting in the way.

  13. Came away with some new perspectives I had not considered before, and after focusbuildspathways 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. Great work on keeping things readable, the post never drags or repeats itself which I really appreciate, and a stop at directionengine added a bit more context that fit naturally with what was already said here, no need to read everything twice to get the point being made today.

  15. A genuine pleasure to find a site that publishes at a sustainable cadence rather than chasing the daily content treadmill, and a look at actionlogic confirmed the careful publication rhythm, sites that prioritise quality over frequency are rare and this one has clearly chosen the slower pace which I appreciate as a reader.

  16. Started reading without much expectation and ended on a high note, and a look at smartzone continued that arc, content that builds rather than peaks early is a sign of a writer who knows how to structure a piece for sustained reader engagement rather than relying on a strong hook to do all the work.

  17. Worth pointing out that the writer made the topic feel more interesting than I had been expecting, and a look at growthmovesintentionally continued that elevation effect, content that improves the apparent quality of its subject through skilled treatment is doing something real and this site has clearly developed that kind of editorial alchemy throughout.

  18. Народ кто в теме Задолбался я уже искать нормальное казино Денег слил на всяком говне Короче, нашел наконец толковое казино — вавада казино онлайн лучший выбор Поддержка отвечает сразу В общем, вся инфа вот здесь — vavada casino vavada casino Только вавада реально рулит Перешлите тому кто тоже ищет нормальное казино

  19. Всем привет А поддержка молчит как рыба Искал долго, перепробовал кучу вариантов Короче, работает стабильно и честно — вавада казино онлайн лучший выбор Всё летает как часы В общем, смотрите сами по ссылке — вавада казино онлайн официальный сайт вавада казино онлайн официальный сайт Только вавада реально рулит Перешлите тому кто тоже ищет нормальное казино

  20. Really clear writing, the kind that makes you want to share the link with someone who has been asking about the topic, and a quick browse through unifiedtrusthub only made me more sure of that, the information here stays useful long after the first read is done which says a lot.

  21. Гемблеры отзовитесь То вообще доступ закрывают Нервов потратил — мама не горюй Короче, единственное где не кидают — vavada официальный сайт Вывод денег за 5 минут В общем, смотрите сами по ссылке — vavada online casino [url=https://daostone.ru]vavada online casino[/url] Только вавада реально рулит Перешлите тому кто тоже ищет нормальное казино

Leave a Reply

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