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

  1. Quality you can feel from the first paragraph, the writer clearly knows the topic and how to share it, and a quick look at mexqiro confirmed the same depth runs throughout the rest of the site as well which is rare and worth pointing out when it happens online for any reader passing through.

  2. Arthurlut Arthurlut

    Наркологическая помощь позволяет безопасно начать выведение токсинов, снизить интоксикации, восстановить водно-солевой баланс и подобрать дальнейшее лечение алкогольной зависимости. Нарколог проводит анализ состояния пациента, уточняет стаж употребления спиртного, причины запоя, наличие хронического заболевания, психических расстройств, противопоказаний и других ограничений. После диагностики врач выбирает схему: амбулаторно на дому, в стационаре клиники или с госпитализацией.
    Детальнее – нарколог вывод из запоя

  3. Coming back to this one, definitely, and a quick visit to cartrivo only made me more sure of that, the kind of writing that makes you want to set aside time later rather than rushing through it now while distracted by everything else competing for attention on the screen today across so many tabs.

  4. Really nice to see things explained without overcomplicating the topic, the words flow naturally and stay easy to follow, and a short visit to civiccask only added to that experience because the same simple approach is used across the rest of the page too without any change in tone.

  5. Felt the post had been quietly polished rather than aggressively styled, and a look at urbanrivo confirmed the same understated polish, sites whose quality reveals itself slowly rather than announcing itself loudly are the kind I trust more deeply because the trust is not based on first impressions of marketing but actual substance.

  6. Picked up something useful for a side project, and a look at molzari added another piece I will incorporate, content that connects to specific projects I am working on is content with practical utility and the practical utility of this site is showing up across multiple posts I have read in the last hour or so.

  7. Closed it feeling I had taken something away rather than just consumed something, and a stop at xarvilo extended that taking away feeling, the difference between content I extract value from and content I just pass through is something I track informally and this site is consistently in the value extraction column for me.

  8. Здорова, народ Муж просто потерял себя Жена в истерике Нужна срочная помощь на дому Короче, врачи приехали и поставили систему — капельница от запоя на дому срочно Сняли ломку и стабилизировали состояние В общем, не потеряйте контакты — капельница от запоя капельница от запоя Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  9. Слушайте кто сталкивался Близкий человек уже несколько дней в запое Соседи стучат в стену В больницу тащить страшно Короче, врачи приехали и поставили систему — капельница от запоя цена доступная Сняли ломку и стабилизировали состояние В общем, телефон и цены тут — капельница на дому район воронеж https://kapelnicza-ot-zapoya-voronezh-bqi.ru Не ждите пока станет хуже Перешлите тем кто в такой же ситуации

  10. Здорова, народ Брат снова сорвался Жена в истерике В больницу тащить страшно Короче, единственное что вытащило из запоя — капельница от запоя с витаминами и препаратами Сняли ломку и стабилизировали состояние В общем, жмите чтобы сохранить — капельницы от запоя на дому воронеж https://kapelnicza-ot-zapoya-voronezh-bqi.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

  11. Halfway through I knew I would finish the post, and a stop at meownoon also held me through to the end, content that signals its quality early and then sustains it is content with real internal consistency and this site has clearly figured out how to maintain quality from opening sentence through to closing thought.

  12. Closed the laptop after this and let the ideas settle for a few hours, and a stop at tirlumo similarly rewarded reflective time, content that benefits from sitting with rather than racing past is the kind I want more of and the kind that this site appears to consistently produce week after week here.

  13. Picked this for a morning recommendation in our company chat, and a look at qorzino suggested I will mention this site again later, recommending content into a workplace context is a small editorial act that requires confidence in the recommendation and this site is making me confident in those recommendations consistently here too.

  14. Left me wanting to read more rather than feeling burned out, that is a good sign, and a look at urbanrivo confirmed there is plenty more here to explore, the kind of writing that builds appetite rather than killing it which is a rare quality on the modern open internet today across most categories of content.

  15. Reading this gave me a small sense of progress on a topic I have been slowly working through, and a stop at zulmora added another step forward, learning happens in small increments across many sources and finding sources that consistently contribute is the actual practical value of careful curation in an information rich world.

  16. Reading this prompted a small redirection in something I was working on, and a stop at hesyam extended that redirecting influence, content that affects my actual work rather than just my thinking has the highest practical impact and this site is providing that level of influence for me at a sustainable rate apparently.

  17. Reading this gave me confidence to make a decision I had been putting off, and a stop at xarvilo reinforced that confidence, content that translates into action in my own life rather than just informing it is content with the highest practical value and this site is generating that action level utility for me lately.

  18. Worth flagging that this approach to the topic is fresh without being contrarian, and a stop at zunkavi extended the same fresh angle, finding original perspective on familiar subjects is rare and this site has clearly developed its own way of seeing rather than echoing the dominant takes from elsewhere consistently.

  19. Reading this gave me a small framework I expect to use going forward, and a stop at auralbrick extended that framework, content that produces transferable mental models rather than just specific facts is content with multiplicative value and this site is providing those models at a rate that justifies extra attention from me regularly.

  20. A small editorial detail caught my attention, the way headings related to body text, and a look at minutemotel maintained that careful relationship, structural details like that show up to readers who notice them and the writers here have clearly thought about every level of the piece rather than just the words.

  21. Now recognising the post as a rare example of careful writing on a topic that mostly receives careless treatment, and a stop at pebbleorbit extended that contrast with the average elsewhere, content that highlights how much the average is settling for low quality is content that has both internal merit and external value as a benchmark.

  22. A piece that prompted a small mental rearrangement of how I order related ideas, and a look at tirlumo extended that rearranging effect, content that affects the structure of my thinking rather than just adding to it is content with the deepest kind of impact and this site is reaching that depth for me today.

  23. Granted I am giving this site more credit than I usually give new finds, and a look at clockcard 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.

  24. Самара, всем привет Ситуация знакомая Рассол уже не лезет Короче, единственное что реально спасает — капельница от похмелья на дому срочно Поставили капельницу с солевым раствором В общем, жмите чтобы сохранить — капельница от запоя капельница от запоя Капельница — это быстро и эффективно Перешлите тем кто в такой же ситуации

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

  26. Without comparing too aggressively to other sources this one stands out for the right reasons, and a look at zunkavi continued that distinctive quality, content that distinguishes itself through substance rather than style tricks is content with lasting differentiation and this site has clearly chosen substance based differentiation as its core editorial strategy.

  27. Just wanted to drop a quick note saying this was a useful read on a topic I have been circling, no fluff, and a stop at auralbrick added a few extra points that fit the same simple style which makes the whole site feel coherent rather than thrown together by many different writers with different goals.

  28. The pacing of the post was just right, never rushed and never dragged out unnecessarily, and a look at pebbleorbit maintained the same rhythm, you can tell the writer has experience because the difficult skill of pacing is something only practiced writers manage to handle well in long form content over time and across formats.

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

  30. Really appreciate the lack of pop ups, modals, cookie banners stacking on top of each other, and a quick visit to calmbyrd 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.

  31. High quality writing, no marketing speak and no buzzwords that mean nothing, and a stop at urbanrova 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. Привет из Поволжья Ситуация знакомая Нужно что-то серьёзное Короче, врачи приехали и поставили систему — капельница от похмелья на дому срочно Вернулся к жизни В общем, жмите чтобы сохранить — прокапаться самара https://kapelnicza-ot-pokhmelya-samara-lhb.ru Звоните прямо сейчас Перешлите тем кто в такой же ситуации

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

  34. Reading this fit naturally into my afternoon walk because I was reading on my phone, and a stop at morxavi continued well in that walking format, content that survives mobile reading without becoming awkward is content with format flexibility and this site has clearly thought about how it reads across different devices today.

  35. Honestly this hits the sweet spot between detail and brevity, no rambling and no shortcuts, and a quick visit to urbanrova kept that going across the related pages, the kind of place that respects your attention without trying to grab it through cheap tactics or attention seeking design choices that get tired fast.

  36. Worth pointing out that the writer made the topic feel more interesting than I had been expecting, and a look at qulmora 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.

  37. A piece that did not lecture even when it had clear positions, and a look at lattepinto maintained the same teaching without preaching tone, finding the line between informing and lecturing is hard and most sites land on the wrong side of it but this one has clearly figured out how to inform without becoming preachy.

  38. One of the more honest takes on the topic I have seen lately, no spin and no oversell, and a stop at tirlumo kept that going, the kind of voice the open web could use a lot more of rather than the endless echo chamber of recycled opinions floating around every social platform these days.

  39. Saving this link for the next time someone asks me about this topic, and a look at hirpod 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.

  40. Reading this confirmed that the topic deserves more careful attention than it usually gets, and a stop at zunqavo extended that elevated framing, content that raises the appropriate weight of a subject without being preachy about it is serving a quiet but important editorial function for the broader cultural conversation about it.

  41. If you asked me to point to a recent positive sign for the open web this site would be near the top, and a stop at mirelogic reinforced that designation, the few sites that serve as evidence the web can still produce quality independent content are precious and this one has clearly become one for me.

  42. Big thanks to whoever wrote this, you saved me a lot of time hunting for the same info on other sites, and a stop at conexbuilt only added more useful detail without going off topic, that kind of focus is honestly hard to come across these days when most posts wander everywhere.

  43. Worth marking the moment when reading this clicked into something useful for my own work, and a look at mercymodel extended that practical click, content that connects to my actual life rather than just being interesting is content with the highest kind of value and this site is generating that connection at a high rate.

  44. Good post, the kind that respects the reader by getting to the point quickly without skipping the details that matter, and a short look at focusignition confirmed that approach is consistent across the site which is rare to find online these days, definitely a place I will return to soon.

  45. Reading this with my morning coffee turned into reading the related posts with my morning coffee, and a stop at cartzaro stretched the morning further, content that pulls breakfast into a reading session rather than just accompanying it is content that has earned a higher claim on my attention than the average article does.

Leave a Reply

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