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)
If you scroll past this site without looking carefully you will miss something, and a stop at discovernewfocuspoints extended that mild warning, the surface of the site does not advertise its quality loudly which means careful attention is required to recognise what is being offered here which is itself a kind of editorial signal.
I appreciate the clarity here, everything is explained in simple terms without unnecessary detail, and after a quick stop at growintentionallynow the points came together nicely for me, the writing keeps things straightforward and respects the reader from start to finish without ever talking down to anyone.
Reading this on a phone at a coffee shop and finding it perfectly suited to that context, and a stop at discoverinnovativegrowthpaths 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.
Worth flagging that the post handled an angle of the topic I had not seen elsewhere, and a look at createconsistentdirectionalgrowth extended that fresh treatment, content that finds underexplored corners of well covered subjects is genuinely valuable and this site has demonstrated that exploratory editorial approach across multiple pieces in my reading sessions today.
Came in confused about the topic and left with a much firmer grasp on it, and after createforwarddirection 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.
A satisfying piece in the way that good meals are satisfying rather than just filling, and a look at discovernewdirectionpaths extended that satisfaction, the metaphor between content and meals is one I find useful and this site reads as a satisfying meal rather than the empty calories that most content provides for casual readers.
If a friend asked me where to read carefully on the topic I would send them here without hesitation, and a look at buildsustainablegrowth confirmed the recommendation strength, the directness of my recommendation reflects how confident I am in the quality and this site has earned undiluted recommendations from me across multiple recent conversations actually.
Even on a quick first read the substance of the post comes through, and a look at learnandoptimizepath reinforced that immediate quality, content that does not require a slow careful read to demonstrate value but rewards one anyway is content with real depth and this site has produced work of that demanding depth class.
Really nice to see things explained without overcomplicating the topic, the words flow naturally and stay easy to follow, and a short visit to findgrowthsolutionsnow only added to that experience because the same simple approach is used across the rest of the page too without any change in tone.
One of the more honest takes on the topic I have seen lately, no spin and no oversell, and a stop at learnandadvancegrowth kept that going, the kind of voice the open web could use a lot more of rather than the endless echo chamber of recycled opinions floating around every social platform these days.
Now sitting back and recognising that this was a small but real win in my reading day, and a stop at seotrail extended that quiet win, the cumulative effect of small reading wins versus the cumulative effect of small reading losses is real over time and this site is contributing to the wins side of that ledger.