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)

3,656 Comments

  1. 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 brightpathcorner 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.

  2. Came across this and immediately thought of a friend who would enjoy it, and a stop at discoverfashionhub also reminded me of someone, content that triggers the urge to share is content that has earned my recommendation and this site has earned multiple from me already across different conversations during the week.

  3. Felt energised after reading rather than drained, which is unusual for online content these days, and a look at sunrisehillcorner continued that good feeling, content that leaves you better than it found you is rare and worth bookmarking when you stumble across it for the first time today or any other day really.

  4. Really like the way the post resists reaching for cliches that would have made it feel generic, and a quick visit to everattic kept that fresh feel going, original phrasing and unexpected metaphors are signs that the writer is actually thinking rather than just stitching together familiar phrases into the appearance of content.

  5. Really appreciate the absence of stock photos that have nothing to do with the content, and a quick visit to discoverfashionhub maintained the same restraint, visual filler is a tell that the writing cannot stand on its own and the lack of it here suggests the team has confidence in their content quality alone.

  6. Found the writing surprisingly fresh for what is by now a well covered topic, and a stop at moonfieldboutique kept that freshness going across the related pages, original perspective on familiar ground is hard to come by and this site has clearly earned its place in the conversation rather than just rehashing old ideas.

Leave a Reply

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