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

  1. Honestly enjoyed every minute spent here, that is not something I say lightly, and a look at simplelivingmarket confirmed I will be back, the bar for spending time online is high for me these days but this site clears it without effort which is high praise indeed from this reader who is usually rather demanding.

  2. Skipped the social share buttons but might come back to actually use one later, and a stop at globaltrendoutlet extended that share urge, content that triggers genuine sharing impulses rather than performative ones is content that has actually moved me and not many posts in a typical week do that for me actually.

  3. wildwoodfashion wildwoodfashion

    My professional context would benefit from having this kind of resource available, and a look at wildwoodfashion extended the professional applicability, the rare site that contributes meaningfully to professional work rather than just personal interest is content with multiplied value and this one is providing that professional utility consistently across multiple pieces.

  4. Worth pointing out that the post avoided the temptation to summarise everything at the end, and a look at honestharvesthub continued that confident closing approach, content that trusts readers to retain the substance without being reminded of it at the end is content that respects the reader and this site practices that respect.

  5. findpurposeandpeace findpurposeandpeace

    Liked that there was nothing performative about the writing, and a stop at findpurposeandpeace continued that genuine quality, performative writing tries to be witnessed rather than read and the difference between performance and substance is huge for the careful reader and this site has clearly chosen substance every time clearly.

  6. A piece that exhibited the kind of patience that good writing requires, and a look at happylivingoutlet continued that patient quality, hurried writing is easy to spot and this site reads as having been written without time pressure which produces a different feel than the rushed content that dominates much of the modern blog space.

  7. Felt the writer respected the topic without being precious about it, and a look at globaltrendoutlet continued that respectful but unfussy treatment, finding the right register for serious topics is hard and this site has clearly figured out how to take the topic seriously while still being readable for casual visitors regularly.

Leave a Reply

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