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

  1. Took a quick scan first and then went back to read properly because the post deserved it, and a stop at bravofarm kept me reading carefully too, the kind of writing that earns a slower second pass rather than getting skimmed and forgotten is something I value highly when I happen to find it.

  2. Roberttig Roberttig

    Важное преимущество услуги — анонимность. Информация о пациента, обращении, адрес, диагноз, лечение, консультация, стоимость, препараты и другие данные не передаются третьим лицам. Нажимая кнопку «отправить заявку», вы соглашаетесь с пользовательским соглашением, политикой обработки персональных данных и политикой конфиденциальности сайта.
    Детальнее – вызвать нарколога на дом

  3. A genuine pleasure to find a site that publishes at a sustainable cadence rather than chasing the daily content treadmill, and a look at wildridgeattic 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.

  4. Really appreciate that the writer did not assume I would read every other related post first, and a look at freshcluster kept that self contained feel going where each piece can stand alone, accessibility for new readers is a sign of generous editorial thinking and this site has clearly invested in that approach.

  5. Now realising the post solved a small problem I had been carrying for weeks, and a look at freshcluster 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.

  6. Really appreciate the confidence to make a clear point rather than hedging everything, and a quick visit to irisbureau maintained the same direct stance, writing that takes positions rather than equivocating is more useful even when the positions are debatable because at least the reader has something to react to clearly.

  7. Decided not to comment because the post said what needed saying, and a stop at discoverbestoffers continued that complete feel, content that does not invite obvious additions or corrections from readers is content that has been carefully considered and this site appears to consistently produce pieces that satisfy rather than provoke unnecessary follow ups.

  8. Closed my email tab so I could read this without interruption, and a stop at flareaisle earned the same protected attention, when content is good enough to defend against the usual digital distractions you know it deserves better than the half attention most online reading gets in a typical busy day.

  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 autumnmistemporium 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. Started taking notes about halfway through because the points were stacking up, and a look at irisbureau added enough material that my notes file grew further, content that demands note taking from a passive reader is content with substance and the writers here are clearly producing that kind of work consistently across topics.

  11. Closed my email tab so I could read this without interruption, and a stop at shopthelatestdeals earned the same protected attention, when content is good enough to defend against the usual digital distractions you know it deserves better than the half attention most online reading gets in a typical busy day.

  12. Thank you for the genuine effort here, it shows in every paragraph and not just the headline, and after my visit to oceanleafcollections I was sure this site cares about getting things right rather than chasing clicks, which is the main reason I will come back later this week to read more.

  13. The overall feel of the post was professional without being stuffy, and a look at bravoparish kept that approachable expertise going, finding the right register for technical content is hard but this site has clearly figured out how to sound knowledgeable without slipping into that distant lecturing tone that loses readers in droves every time.

  14. Honestly this kind of writing is why I still bother to read independent sites, and a look at brightcollectionhub extended that broader reflection, the few sites that justify continued attention to non algorithmic content are sites like this one and finding them periodically is enough to keep my reading habits oriented toward independent rather than aggregated content.

  15. Worth marking the moment when reading this clicked into something useful for my own work, and a look at brightpeakharbor 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.

  16. Reading this on the train into work was a better use of the commute than my usual choices, and a stop at deepbrookcorner extended that commute reading well, content that improves transit time rather than just filling it is content with practical benefit and this site has earned its place in my morning commute reading rotation.

  17. Worth flagging this post as worth a careful read rather than a casual skim, and a stop at flarefest earned the same careful approach, the few sites that warrant slower reading are sites I now treat differently from the daily content stream and this one has clearly moved into that elevated treatment category.

  18. Thanks for laying this out in a way that someone newer to the topic can follow, and a stop at newharborbloom kept that accessibility going, writing that meets readers at different experience levels without condescending is hard to do well and the writers here have clearly thought about who they are writing for.

  19. Now noticing that the post did not mention the writer at all, focus stayed on the topic, and a look at bravopier continued that author absent quality, content that disappears the writer to focus on the substance is a particular kind of generosity and this site has clearly chosen the substance over the personality consistently.

  20. Excellent post, balanced and well organised without showing off, and a stop at deepbrookcorner continued in that same vein, this site has clearly figured out the formula for content that works for readers rather than for search engine ranking signals which is harder than it sounds today and worth real recognition from anyone.

  21. Worth your time, that is the simplest endorsement I can give, and a stop at wildgroveemporium extends that endorsement across the rest of the site, this is one of those increasingly rare places that delivers on what it promises rather than over selling the content and under delivering on substance every time which I find frustrating elsewhere.

  22. Easy to recommend without reservations, the site delivers on every promise it implicitly makes, and a look at shopthebestfinds kept that same standard going, the kind of consistency that earns trust over time rather than chasing it through aggressive marketing is what I see here and it is appreciated greatly by this particular reader today.

  23. A piece that did not try to be timeless and ended up reading as durable anyway, and a look at beststylecollection extended that durable feel, content that stays useful past its publication date without straining for permanence is content that ages well and this site has the kind of evergreen quality that I value highly today.

  24. Worth a quiet moment of recognition for the consistency I have noticed across multiple posts, and a stop at brightmoorcorner continued that consistent quality, sites that maintain quality across many pieces rather than peaking on one viral post are sites with real editorial discipline and this one has clearly developed that discipline carefully.

  25. Glad I gave this a chance rather than scrolling past, and a stop at uniquetrendcollection confirmed I made the right call, sometimes the best content is hidden behind unassuming headlines that do not scream for attention and learning to slow down and check those out has paid off many times now across years of reading.

  26. DouglaswaIns DouglaswaIns

    Эта публикация посвящена актуальным вопросам современной медицины и здравоохранения. Мы обсудим новейшие технологии диагностики и лечения, а также их влияние на продолжительность и качество жизни. Читатель найдет здесь информацию о научных исследованиях и перспективных разработках, доступно изложенную для широкой аудитории.
    Кликни, не пожалеешь – Похмельная служба Краснодар

  27. Reading this confirmed a small detail I had been uncertain about, and a stop at lagoonmill provided the source for further checking, content that supports verification through citations or links rather than just asserting facts is more trustworthy and this site has clearly built its credibility through that kind of verifiable approach consistently.

  28. Liked the careful word choice throughout, every term seemed picked for a reason rather than thrown in casually, and a stop at brightmoorcorner 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.

  29. The pacing of the post was just right, never rushed and never dragged out unnecessarily, and a look at frostcoast 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.

  30. Speaking from the perspective of a fairly demanding reader the writing here clears the bar consistently, and a look at starlightforest continued clearing that bar, the calibration of demanding reader is something I apply to all sources and this site has been one of the few that handles the demanding reading well across pieces sampled.

  31. Worth recognising that the post did not pretend to be the final word on the topic, and a stop at uniquetrendcollection continued that humility, content that admits its own scope and limits is more trustworthy than content that overreaches and this site has clearly developed the editorial maturity to know what it can and cannot claim well.

  32. Useful read, especially because the writer did not assume too much background from the reader, and a quick look at goldenmeadowsupply continued in the same way, a thoughtful site that meets people where they are which is something the modern web could use a lot more of for both casual and serious readers.

  33. Beyond the immediate post itself the editorial sensibility behind the site is what struck me, and a stop at curiopact continued displaying that sensibility, content that reveals editorial choices through accumulated reading is content with structural quality and this site has clearly developed an underlying approach worth identifying through multiple sessions of reading.

  34. Robertfus Robertfus

    Вы получаете не просто разовую процедуру, а комплекс медицинской помощи. Врач нарколога может объяснить родственникам, как говорить с зависимым, что делать после капельницы, какие препараты принимать, когда необходимо лечение в клинике и почему кодирование алкоголизма или реабилитация часто становятся следующим этапом. Такой подход помогает не только вывести пациента из запоя, но и начать полноценное восстановление.
    Узнать больше – нарколог на дом вывод из запоя в казани

  35. Started smiling at one paragraph because the writing was just nice, and a look at briskcanopy produced a couple more such moments, prose that produces small spontaneous reactions in the reader is doing more than just transferring information and the writers here are clearly hitting that level fairly consistently throughout pieces.

  36. A piece that built up gradually rather than front loading its main points, and a look at goldenmeadowsupply maintained the same gradual structure, content that trusts the reader to reach conclusions through accumulating reasoning is more persuasive than content that announces conclusions and then defends them and this site uses the persuasive approach.

  37. Beyond the immediate post itself the editorial sensibility behind the site is what struck me, and a stop at curiopact continued displaying that sensibility, content that reveals editorial choices through accumulated reading is content with structural quality and this site has clearly developed an underlying approach worth identifying through multiple sessions of reading.

  38. Just enjoyed the experience without needing to think about why, and a look at cozytimberoutlet kept that effortless feeling going, sometimes the best content is invisible in the sense that you forget you are reading until you reach the end and realise time has passed without you noticing it pass naturally.

  39. A clean read with no irritations, and a look at bestdailycorner continued that frictionless quality, the absence of small irritations is something I notice only when present elsewhere and this site is one of the rare places where everything just works and lets me focus on the substance rather than fighting the format.

  40. A piece that did not waste any of its substance on sales or promotion, and a look at urbanstylechoice continued that pure content focus, sites that resist the urge to monetise every paragraph are increasingly rare and this one has clearly made the editorial choice to keep the writing clean from commercial intrusion which I value highly.

  41. Thank you for being clear and direct, that simple approach saves so much frustration on the reader’s end, and a stop at dreamcrestridge only made me more sure of it, the rest of the content seems to follow the same pattern which is a great sign of consistent editorial care behind the scenes.

  42. globalseasonstore globalseasonstore

    Now planning to recommend this site in a context where my recommendations are taken seriously, and a stop at globalseasonstore confirmed I should make that recommendation soon, the small but real act of recommending content into spaces where my taste matters is something I take seriously and this site is worth the recommendation.

  43. Probably the best thing I have read on this topic in the past month, and a stop at bestdailycorner extended that ranking, the casual ranking of recent reading is informal but real and this site has been winning those rankings for me on this topic specifically over the last several weeks of regular reading sessions.

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

  45. Pass this along to anyone you know dealing with similar questions, the answers here are clear, and a stop at flareinlet adds even more useful material, this is the kind of resource that deserves to circulate widely rather than getting lost in the constant churn of new content online that buries good work daily.

  46. purefashionchoice purefashionchoice

    A welcome reminder that thoughtful writing still happens online, and a look at purefashionchoice extended that reassurance, the modern web makes it easy to forget that careful writing exists and finding sites that practice it is a small antidote to the cynicism that builds up from too much exposure to algorithmic content.

  47. A piece that was confident enough to leave some questions open rather than forcing closure, and a look at sunsetpinecorner continued that intellectual honesty, content that admits the limits of its scope is more trustworthy than content that pretends to total understanding and this site has the right calibration on certainty consistently.

Leave a Reply

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