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

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

  2. Worth every minute of the time spent reading, and a stop at easydigitalretail extends that value across more pages, in a media environment where most content is engineered to waste attention this site stands out by treating reader time as something valuable rather than something to be exploited and stretched as far as possible.

  3. A memorable post for me on a topic I had thought I was tired of, and a look at discovernewdirections suggested the same site can refresh other tired topics, sites that can revive my interest in subjects I had written off as exhausted are doing rare work and this one is clearly doing that for me today.

  4. Polished and informative without feeling overproduced, that is the sweet spot, and a look at learnfromexpertinsights hit it again, you can tell when a site has been built with care versus thrown together for the sake of having something to put online and this is clearly the former approach taken by the team.

  5. A piece that demonstrated competence without performing it, and a look at digitalbuyingexperience maintained the same self assured but unshowy register, the gap between competence and performance of competence is one I track and this site has clearly chosen to demonstrate rather than perform which I find much more persuasive as a reader.

  6. Now planning to recommend this site in a context where my recommendations are taken seriously, and a stop at trustedmarketrelationship 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.

  7. Really appreciate that the writer did not stretch the post to hit some target word count, the points end when they are made, and a stop at urbanretailshoppingzone reflected the same discipline, brevity is generosity in disguise and this site has clearly figured that out far better than most blog operations have.

  8. More substantial than most of what I find searching for this topic online, and a stop at growwithinformedchoices kept that quality consistent, this is one of those sites where the writing actually rewards careful reading rather than punishing the patient reader with empty filler stretched out across long paragraphs that say very little.

  9. Bookmark moved to my permanent reference folder rather than the casual maybe later folder, and a look at createbetteroutcomes earned the same upgrade, the distinction between casual interest and lasting reference is something I track carefully and very few sites cross that threshold but this one did so without much effort apparently.

  10. Just enjoyed the experience without needing to think about why, and a look at collaborativegrowthnetwork 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.

  11. Bookmark moved to my permanent reference folder rather than the casual maybe later folder, and a look at createbetteroutcomes earned the same upgrade, the distinction between casual interest and lasting reference is something I track carefully and very few sites cross that threshold but this one did so without much effort apparently.

  12. Worth observing that the post landed without needing a flashy headline to hook attention, and a stop at globalbusinessrelationshiphub did the same, content that earns engagement through substance rather than packaging is the kind I trust more deeply and this site has clearly chosen substance as the primary lever for reader engagement throughout.

  13. Started reading and ended an hour later without realising the time had passed, and a look at globalbusinessrelationshiphub produced the same time dilation effect, when content makes time feel different the writer has achieved something well beyond the average and this site is producing that experience for me reliably across multiple readings.

  14. Reading this on a slow Sunday and finding it perfectly suited to a slow Sunday read, and a quick stop at enterprisevaluealliances kept the same gentle pace, content that fits the mood of the moment is something I notice and remember and this site has the kind of pace that suits relaxed reading sessions especially well.

  15. My usual pattern is to skim and bounce but this site has reset that pattern temporarily, and a stop at trustedcorporateconnections maintained the slower reading mode, content that changes how I read is content with structural influence and this site has clearly nudged my reading behaviour toward something better at least for the duration of these visits.

  16. If patience for careful reading is rare these days finding sites that reward it is rarer still, and a stop at clicktoexploreideas extended that rare reward, the diminishing returns on shallow content reading have made me more selective about where to spend reading time and this site is meeting the higher selectivity bar consistently.

  17. During a quiet evening reading session this provided just the right depth without being heavy, and a stop at globalbusinessrelationshiphub maintained the same evening appropriate weight, content with depth that does not exhaust the reader is content with editorial calibration and this site has clearly figured out how to be substantial without being demanding all the time.

  18. Now appreciating that the post did not try to imitate any other style I might recognise, and a stop at clicktoadvanceknowledge continued that distinct voice, content with its own register rather than borrowed from elsewhere is content with real authorial presence and this site has clearly developed that presence through what feels like patient editorial work.

  19. Now adjusting my mental model of how the topic fits into the broader landscape, and a look at explorelongtermopportunities extended that adjustment, content that affects my structural understanding rather than just my factual knowledge is content with deeper impact and this site is providing those structural updates at a meaningful rate consistently across topics.

  20. Reading this fit naturally into my afternoon walk because I was reading on my phone, and a stop at clicktofindstrategicoptions 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.

  21. Bookmark earned and the bookmark feels like a permanent addition rather than a maybe, and a look at globalretailcommercehub 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.

  22. Honestly slowed down to read this carefully which is not my default, and a look at globalshoppinginfrastructure kept me in that careful reading mode, the kind of writing that demands attention by being worth attention is rare in a media environment full of content engineered to be skimmed not read with any real focus today.

  23. Closed the post with a small satisfied sigh, and a stop at globaldigitalshoppingmarket produced the same gentle exhale, content that ends well is content that respects the rhythm of reading and the writers here have clearly thought about how their pieces close rather than just trailing off when they run out of things to say.

  24. Probably the best thing I have read on this topic in the past month, and a stop at clicktofindclarity 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.

  25. Decided to read more before commenting and the more I read the more I wanted to say something, and a stop at bluecrestbond pushed that impulse further, when content provokes the urge to participate rather than just consume it is doing something quite specific and worth recognising clearly when it happens during reading.

  26. Came in skeptical of the angle and left mostly persuaded, and a stop at clickforgrowthinsights pushed me a bit further in the same direction, content that can move a critical reader by argument rather than rhetoric is rare and worth pointing out because it indicates real substance underneath the surface presentation here.

  27. Adding this site to my regular reading list, the post earned that on its own, and a quick stop at globaldigitalshoppingmarket 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.

  28. Probably going to mention this site in a write up I am working on later this month, and a stop at airycargo provided more material for that potential mention, content worth referencing in my own published work rather than just personal reading is content with the highest endorsement level and this site has earned that endorsement.

  29. Reading this gave me a small jolt of recognition for an experience I thought was just mine, and a stop at clicktoexplorefutures produced more such jolts, content that universalises private experiences without flattening them is doing genuinely useful work and this site is providing that recognition function for me reliably across topics I read.

  30. The post made the topic feel approachable without making it feel trivial, that is a fine balance, and a stop at urbanretailshoppingzone maintained the same balance, finding the middle ground between welcoming and serious is genuinely difficult and the writers here have clearly figured out how to consistently hit it well across many different posts.

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

  32. Thanks for the simple approach, too many sites bury the actual point under layers of unnecessary words, but here every line earns its place, and a look at bluecrestbond showed the same care for the reader which is something I will remember the next time I need answers on a topic.

  33. Really appreciate that the writer did not assume I would read every other related post first, and a look at urbanretailshoppingzone 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.

  34. Great work on keeping things readable, the post never drags or repeats itself which I really appreciate, and a stop at buildfuturefocusedpaths 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.

  35. Took a screenshot of one section to come back to later, and a stop at longtermcommercialbonds prompted another saved tab, the urge to capture and revisit specific pieces of content is something I rarely feel but when I do it tells me the work is worth more than the average passing read for sure.

  36. One of the more thoughtful posts I have read recently on this topic, and a stop at corporatetrustnetwork added even more weight to that impression, this is genuinely good content that holds its own against far better known sites in the same space without trying to imitate any of them at all which I appreciate.

  37. Picked up something useful for a side project, and a look at globaltrustrelationshipnetwork 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.

  38. Felt the writer was speaking my language without trying to imitate it, and a look at discoverprofessionalgrowth continued that natural fit, when a writers default voice happens to match what you find easy to read the experience feels frictionless and that is something I notice and remember about specific sites going forward.

Leave a Reply

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