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)

2,607 Comments

  1. ketteglademarketstudio ketteglademarketstudio

    Over the course of reading several posts here a pattern of quality has emerged, and a stop at ketteglademarketstudio confirmed the pattern, the difference between sites that hit quality occasionally and sites that hit it consistently is huge and this site has clearly demonstrated the consistent kind through what I have read this morning.

  2. silverlaneemporium silverlaneemporium

    Came in confused about the topic and left with a much firmer grasp on it, and after silverlaneemporium I felt I could explain this to someone else without hesitation, that is the gold standard for any educational content and most sites simply fail to reach it ever which is unfortunate but true.

  3. globalcartcorner globalcartcorner

    A piece that reads like it was written for me without claiming to be written for me, and a look at globalcartcorner produced the same fit, when the writer audience match clicks naturally without being engineered through demographic targeting you know the writing is solid and this site has that natural fit consistently for me.

  4. velvetgrovecrafts velvetgrovecrafts

    A piece that did not lecture even when it had clear positions, and a look at velvetgrovecrafts maintained the same teaching without preaching tone, finding the line between informing and lecturing is hard and most sites land on the wrong side of it but this one has clearly figured out how to inform without becoming preachy.

  5. elitegoodscorner elitegoodscorner

    Worth pointing out that the writer made the topic feel more interesting than I had been expecting, and a look at elitegoodscorner continued that elevation effect, content that improves the apparent quality of its subject through skilled treatment is doing something real and this site has clearly developed that kind of editorial alchemy throughout.

Leave a Reply

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