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)

8,018 Comments

  1. Closed the tab and immediately reopened it ten minutes later because I wanted to reread a part, and a stop at actionoptimizer drew the same return, content that pulls you back after closing it is doing something well beyond the average and worth marking as exceptional in my mental catalogue of reliable sites.

  2. Just sat with this for a bit longer than I usually would because the points are worth thinking about, and after conexbuilt I had even more to chew on, the kind of post that nudges your thinking forward without forcing the issue is something I have always appreciated in good writing online.

  3. A quiet piece that did not try to compete on volume, and a look at peltpetal maintained that selective approach, sites that publish less but better are increasingly rare in an environment that rewards volume and this one has clearly chosen quality cadence over quantity which is a brave editorial decision in current conditions.

  4. Recommend this to anyone who values clear thinking over flashy presentation, and a stop at pacerlucid continued in the same understated way, this site has its priorities in the right place which makes it worth supporting through repeat visits and recommendations rather than just one passing read today before moving on quickly elsewhere.

  5. 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.

  6. Honestly this was the highlight of my reading queue today, and a look at movlino extended that across more pages I will return to, ranking what I read against what else I read each day is something I do informally and this site keeps moving up in those rankings the more I explore it.

  7. Useful read, especially because the writer did not assume too much background from the reader, and a quick look at auralbrig 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.

  8. Bookmark earned, share earned, return visit earned, all from one reading session, and a look at urbanso did the same, the trifecta of bookmark and share and return is rare in a single visit and represents the highest level of engagement I tend to offer any piece of online content these days here.

  9. A well calibrated piece that knew its scope and stayed inside it, and a look at pivotllama maintained the same scope discipline, scope creep is one of the failure modes of long blog posts and this site has clearly invested in the editorial discipline to prevent it which shows up in tightly contained pieces.

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

  11. Reading this on a phone at a coffee shop and finding it perfectly suited to that context, and a stop at actionoptimizer continued the comfortable mobile experience, content that works across reading conditions without compromising on substance is increasingly important and this site has clearly thought about the whole reader experience here.

  12. Most posts I read end up forgotten within a day but this one is sticking, and a look at movlino extended that lingering effect, content that survives the immediate moment of reading rather than evaporating is content with genuine retention quality and this site has been producing memorable pieces at a rate notable across my reading.

  13. Found something new in here that I had not seen explained this way before, and a quick stop at quvnero expanded the idea even further, the kind of writing that nudges your thinking forward a bit without forcing the issue is exactly what I look for online today and rarely actually find anywhere.

  14. Closed my email tab so I could read this without interruption, and a stop at urbanso 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.

  15. A piece that demonstrated competence without performing it, and a look at bracechord 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.

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

Leave a Reply

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