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)

11,062 Comments

  1. Brentfak Brentfak

    Наркологическая клиника «Трезвый путь» в Москве оказывает профессиональную медицинскую помощь людям с алкогольной и наркотической зависимостью. В центре проводится лечение алкоголизма, наркомании, абстинентного синдрома, последствий длительного употребления алкоголя и наркотиков. Специалисты работают круглосуточно, поэтому обратиться за консультацией, вызвать нарколога на дому или приехать в стационар можно в любое время. Для каждого человека подбирается индивидуальный план лечения с учетом состояния организма, стажа зависимости, сопутствующих заболеваний, психических расстройств и ранее проводившейся терапии.
    Ознакомиться с деталями – наркологическая клиника москва отзывы

  2. Started this morning and finished at lunch with a small sense of having spent the time well, and a look at meadowharboroutpost extended that satisfaction into the afternoon, content that fits naturally into the rhythm of a working day rather than demanding a dedicated reading block is increasingly the kind I prefer.

  3. Stands apart from similar pages by actually being useful, that is high praise these days, and a look at plumcovevault kept that standard going, you can tell when a site is built around the reader versus around metrics and this one clearly belongs to the first category for sure based on what I read.

  4. Перед началом курса врач анализирует медицинские данные пациента. Учитываются хронические болезни, стаж алкоголизма или наркомании, результаты анализов и особенности психического здоровья. На основании полученной информации формируется программа лечения пациента. Она может включать медицинскую терапию в клинике, помощь психолога, кодирование, реабилитацию и поддержку семьи.
    Дополнительная информация – luchshaya-narkologicheskaya-klinika-v-moskve-otzyvy

  5. PeterWed PeterWed

    Этот текст посвящён сложным аспектам зависимости и её влиянию на жизнь человека. Мы обсудим психологические, физические и социальные последствия зависимого поведения, а также важность своевременного обращения за помощью.
    Ознакомиться с отчётом – нарколог на дом круглосуточно

  6. Came across this and immediately thought of a friend who would enjoy it, and a stop at vionessa 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.

Leave a Reply

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