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.816 Comentários

  1. During research on modern digital shopping environments, I came across Velvet Brook vendor exhibition site placed within a minimalist layout that enhances focus on displayed content – The browsing experience feels organized and smooth, encouraging users to explore naturally without distractions or unnecessary visual noise

  2. In my usability review of ecommerce websites I focused on speed performance design structure and overall browsing comfort across devices CalmBrook Commerce Flow Loft everything loaded quickly and I found what I needed without any trouble making navigation feel simple and well organized throughout the session today

  3. When evaluating different ecommerce setups for performance and clarity I tested a structured storefront that prioritized simplicity and speed where CB Vendor Forge – The shopping journey was straightforward and efficient with clear categories and a very responsive checkout system overall experience.

  4. RandallAcrob RandallAcrob

    Выбор между домашней помощью и стационарным лечением часто определяется степенью физиологической зависимости, наличием сопутствующих патологий и риском развития осложнений. В условиях клиники исключаются внешние триггеры, обеспечивается полная изоляция от источников психоактивных веществ и создается контролируемая терапевтическая среда, где медицинские решения принимаются на основе объективных диагностических показателей, а не субъективных ощущений пациента. Такой подход критически важен для предотвращения тяжелых осложнений, минимизации дискомфорта абстиненции и формирования устойчивой базы для дальнейшей противорецидивной работы.
    Исследовать вопрос подробнее – https://vyvod-iz-zapoya-v-staczionare-nizhnij-novgorod-10.ru/

  5. While evaluating modern storefront UX designs, I explored a platform that emphasized clarity and ease of navigation across multiple product categories and listings Birch Harbor Guild Portal – I loved the variety, everything is easy to explore and understand, with a clean structure that made browsing feel organized and stress free.

  6. Hello there! Quick question that’s completely off topic. Do you know how to make your site mobile friendly? My web site looks weird when viewing from my iphone. I’m trying to find a template or plugin that might be able to correct this problem. If you have any suggestions, please share. Cheers!

  7. While comparing multiple resources online and trying to find something dependable, I encountered open this reference and found it to be reasonably trustworthy, leaving me with the impression that it could be worth revisiting again for future updates or additional browsing.

  8. In the course of reviewing online shopping systems, I encountered a structured platform that offered smooth browsing and clearly organized product listings across all sections Harbor Guild Digital Bazaar – The variety was excellent, everything was easy to explore, and the interface made it straightforward to understand product categories without confusion or cluttered design elements.

  9. Many customers exploring curated handmade goods and unique decor pieces often discover this platform while browsing different artisan marketplaces online Velvet Grove Vendor Gallery because it offers a wide selection of creative listings from independent sellers around the region and beyond – Shipping is consistently quick and communication feels clear and professional throughout the entire buying experience.

  10. During a comparative study of online retail interfaces focused on design clarity and usability, I discovered that grid layouts improve product visibility and browsing comfort, which became evident when reviewing smart grid shopping center – The interface feels clean and structured, allowing users to browse products easily in a consistent and visually balanced format.

  11. As part of analyzing multiple ecommerce environments for clarity and navigation efficiency, I came across online retail evaluation page – The site seems to emphasize simplicity, offering organized product categories and a layout that allows users to move through sections without confusion or unnecessary steps.

Deixe um comentário

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