Ir ao conteúdo

Exercicio 3 – Sistemas Operacionais II – INE5424 – UFSC

Trabalho 3 – EPOS
System Object Destruction

    No exercício três deviamos implementar o controle de destrução de objetos, o qual não deve corromper o sistema e também deve estar de acordo com a semântica da linguagem de programação.
    A implementação adotada funciona da seguinte maneira: na class Thread foi adicionado um campo _container, nele é guardada a fila em que a Thread se encontra no momento. Os métodos desta classe foram alterados para que a consistência do campo _container seja mantida. No método join, por exemplo, o campo _container é atualizado com o endereço da fila _waiting_for_me do objeto em que se da join.
    Quando uma thread entra para o estado RUNNING o seu campo container não é atualizado, já que caso o mesmo seja deletado (ou auto-deletado), ele tentará se remover de uma fila em que não está, não causando mais problemas.
    Quando uma thread que possui elementos na sua fila _waiting_for_me é deletada, ela não acorda aquelas que a estão esperando, entrando em uma situação de deadlock. Nosso sistema, por conseguir detectar essa situação facilmente, gera um aviso. Porém, caso a Thread que tente se dar join já tiver sido destruída e removida da memória, a thread em execução trava, como nosso sistema não consegue detectar esse erro ele não é informado.
    Quando um objeto que extende a classe Synchronizer é deletado, seu destrutor chama wakeup_all, fazendo com que todos as threads que estiverem travadas nele continuem a execução.

Arquivos Modificados:
Thread.h
Thread.cc
Sycronizer.h

1.523 Comentários

  1. Michaeljaink Michaeljaink

    Алкогольная зависимость часто держится на страхе отмены. Человек пьёт не ради удовольствия, а чтобы не столкнуться с тремором, потливостью, тошнотой, скачками давления, тревогой и бессонницей. Поэтому лечение начинается с оценки состояния и рисков: насколько тяжёлая отмена, есть ли хронические болезни, были ли осложнения, какие препараты уже принимались. Чем точнее оценка, тем безопаснее стабилизация и тем меньше вероятность ночного ухудшения.
    Изучить вопрос глубже – https://narkologicheskaya-klinika-noginsk12.ru/narkologicheskie-kliniki-cena-v-noginske

  2. While reviewing online commerce platforms with natural inspired layouts I found a site featuring harbor trading center – the design feels neat and the structured navigation creates a smooth and visually balanced shopping experience

  3. При наркотической зависимости состояние может быть менее предсказуемым, особенно если были сочетания веществ или длительное употребление. Часто добавляются нарушения сна, тревожные и депрессивные симптомы, резкие перепады настроения, импульсивность. В таких ситуациях опасно ориентироваться на «домашние схемы» и советы из сети: без оценки рисков можно пропустить осложнения или ухудшить состояние.
    Выяснить больше – https://narkologicheskaya-klinika-noginsk12.ru/chastnaya-narkologicheskaya-klinika-v-noginske/

  4. As I explored different product-focused websites for design inspiration and structure ideas, I came across view this outdoor page – The minimal layout works well, and moving through sections feels effortless, allowing users to stay engaged without distractions.

  5. During evaluation of multiple online outdoor shops focusing on user experience and structural simplicity, I compared how each platform organizes its catalog and highlights essential items for faster browsing decisions UplandCoveStore – updated commentary: the browsing flow feels smooth, categories are easy to scan, and overall usability supports quick understanding of offerings.

  6. People who prefer organized online marketplaces often engage with platforms like Harbor Acorn Vendor Showcase where products are displayed in a structured hall style layout – The design emphasizes clarity and usability, allowing users to browse listings efficiently while maintaining a visually balanced and easy to follow shopping environment.

  7. Users who prefer minimal yet artistic ecommerce environments often find satisfaction in platforms such as Flora Ridge Collection Hub where curated items are arranged in a structured format that supports easy navigation and quick visual understanding of available products – The design approach combines floral elegance with a clean hub structure that improves usability and browsing comfort

  8. RandyKaG RandyKaG

    Капельница от похмелья с детоксикацией и восстановлением представляет собой медицинскую процедуру, во время которой пациент получает инфузии препаратов, направленных на очищение организма от токсинов и восстановление нормальной работы внутренних органов. Применение таких капельниц помогает быстро устранить симптомы похмелья — головную боль, тошноту, слабость и другие неприятные ощущения — и значительно улучшить самочувствие, что особенно важно при тяжелых состояниях, связанных с наркоманией и алкоголем. При этом может проводиться наркологическая терапия, возможен вызов врача на дом, а также учитываются цены услуг и длительность лечения, которая в отдельных случаях может составлять несколько лет.
    Подробнее тут – капельница от похмелья анонимно

  9. During a casual exploration of online marketplace collections and recommendation threads, I found something that appeared well organized and easy to follow, particularly Clover market house entry that offers a straightforward browsing experience without unnecessary complexity – Noticed this recently, and it feels genuinely easy to explore, with a balanced structure that makes returning to it a reasonable choice later on.

  10. Across ecommerce UX testing cycles and organic themed staging environments, testers encountered a central content section containing wild orchard vendor workshop gateway integrated into layout flow, yet product pages remain sparse without ingredient lists or detailed composition breakdowns – Wild orchard feels organic and rustic, but missing ingredient information reduces clarity and usability for customers exploring product options

  11. During my time exploring different platforms online, I found something that caught my attention in a subtle way, click this page – it has a clean and simple design that makes browsing feel very natural and relaxed.

  12. OliverLax OliverLax

    Зависимость редко начинается «внезапно». Обычно всё складывается постепенно: человек чаще снимает напряжение алкоголем, потом замечает, что без него хуже спится и труднее успокоиться, затем появляются запои или регулярные эпизоды употребления, меняется настроение и характер, нарастает тревога, раздражительность, ухудшаются отношения в семье и продуктивность на работе. В какой-то момент становится очевидно, что проблема уже не в силе воли: организм и нервная система перестраиваются так, что трезвость даётся всё тяжелее, а любое прекращение употребления сопровождается дискомфортом, из-за которого хочется «быстро облегчить состояние». Наркологическая клиника в Видном — это помощь, которая возвращает ситуацию в медицински управляемое русло: сначала оценка рисков и стабилизация, затем восстановление базовых функций и лечение зависимости как процесса, а не разовой «процедуры для облегчения». В клинике «МедАльтернатива» маршрут подбирают под конкретное состояние: кому-то требуется срочная детоксикация, кому-то — стационарное наблюдение, кому-то — выезд врача на дом, а кому-то — плановое лечение с фокусом на профилактику рецидива.
    Углубиться в тему – http://narkologicheskaya-klinika-vidnoe12.ru/narkologicheskaya-klinika-v-oblasti-v-vidnom/https://narkologicheskaya-klinika-vidnoe12.ru

  13. Across sandbox ecommerce environments and farm inspired UI templates, developers observed embedded navigation content containing wild vendor orchard workshop entry within central layout structure, but despite the natural branding direction the product pages do not provide ingredient breakdowns or detailed composition data – Wild orchard feels organic and fresh, however ingredient lists are completely absent across all product views in the system

  14. Users who appreciate clean vault-based marketplaces often engage with sites such as Harbor Elm Vault Core Hub where content is displayed clearly – The interface creates a browsing experience that feels secure, organized, and visually aligned across all sections.

  15. While analyzing sandbox ecommerce vendor platforms and UI frameworks, analysts identified embedded sections containing ember stone vendor lounge market hub integrated into page hierarchy, and although visually consistent and strong in theme, the lack of contact information makes the system feel incomplete during usability evaluation

  16. Many online shoppers prefer craft showcase platforms that present discounted handmade goods in a visually organized and easy-to-browse format for better accessibility Craft Outlet Showcase while ensuring dependable quality – this helps users find suitable artisan products quickly while benefiting from consistent pricing advantages across listings.

  17. Shoppers who prefer structured ecommerce layouts often appreciate websites that present products in clearly labeled categories with logical organization that improves usability and supports faster decision making during browsing sessions across multiple product types Crest Opal Market Guide – The interface is built to streamline navigation and enhance clarity, allowing users to explore products efficiently while enjoying a well structured browsing experience that feels intuitive and easy to manage from start to finish.

  18. I was checking a few resources online when I came across something that might interest others here, visit this resource – the simplicity of its layout makes the whole browsing experience feel smooth and user-friendly.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *