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

  1. Dude.. I am not much into reading, but somehow I got to read lots of articles on your blog. Its amazing how interesting it is for me to visit you very often. –

  2. Jamienix Jamienix

    Капельница от похмелья — это одна из самых эффективных процедур для быстрого облегчения симптомов интоксикации после употребления алкоголя. В Нижнем Новгороде существует множество клиник и медицинских центров, которые предлагают услуги капельниц, направленных на восстановление водно-электролитного баланса, улучшение общего самочувствия и снятие неприятных симптомов похмелья. Процесс введения капельницы можно адаптировать под индивидуальные особенности пациента для достижения наилучшего результата.
    Получить больше информации – https://kapelnicza-ot-pokhmelya-nizhnij-novgorod.ru/

  3. We are a group of volunteers and starting a new initiative in our community. Your blog provided us with valuable information to work on|.You have done a marvellous job!

  4. I need to to thank you for this wonderful read!! I definitely enjoyed every little bit of it. I have you bookmarked to look at new stuff you post…

  5. Oh my goodness! Amazing article dude! Many thanks, However I am encountering problems with your RSS. I don’t know the reason why I cannot subscribe to it. Is there anybody getting identical RSS issues? Anyone who knows the answer can you kindly respond? Thanx!!

Leave a Reply

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