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

4.317 Comentários

  1. Clintonkep Clintonkep

    Эти компоненты вводятся в организме пациента постепенно, что позволяет обеспечить мягкое восстановление без резких скачков состояния. В отличие от интенсивных процедур, такой подход гарантирует, что организм восстанавливается более комфортно, не подвергаясь излишнему стрессу.
    Разобраться лучше – капельница от похмелья самара

  2. During a focused session reviewing online marketplace frameworks and vendor showcase layouts for UX reference and performance observation across multiple demos Dune Meadow digital vendor space the structure felt logical and navigation remained predictable across sections – Fast loading performance with clear layout structure and minimal distractions during browsing

  3. While scanning through niche directories and curated marketplace hubs, I came across something that felt user-friendly and simple, especially where Ivory ridge access hub appeared – Browsing here feels smooth overall, with nothing complicated or hard to understand, making navigation feel natural and quick.

  4. While testing UI kits and conceptual ecommerce builds, developers noticed a structured but incomplete section featuring willow commerce drift hub within page layout – missing willow imagery makes the experience feel flat and unpolished suggesting placeholder content remains in key visual areas

  5. In the process of browsing through different platforms, I came across try this link and appreciated how everything is organized here, allowing for easy understanding of the content without unnecessary effort.

  6. Digital buyers often mention that structured marketplaces allow better comparison of items, particularly when navigating through Floraridge Shopping Access – The interface is considered helpful for simplifying selection and improving overall shopping efficiency while reducing time spent on irrelevant items

  7. DonaldClord DonaldClord

    Вывод из запоя в стационаре в Нижнем Новгороде: безопасная детоксикация, медикаментозная терапия и поддержка специалистов в наркологической клинике «Стармед».
    Получить больше информации – http://www.domen.ru

  8. While analyzing UI marketplace prototypes featuring calm oceanic palettes, analysts noted a strong teal visual identity that enhances user comfort, but identified structural inefficiencies in areas such as a href=”https://tealcovemarkethall.shop/
    ” />teal cove market hall entry console where the teal aesthetic is consistent and visually appealing, yet the market hall requires improved category organization to support clearer navigation during usability testing stages

  9. While reviewing different websites for speed and reliability, I found open this page and experienced a pretty smooth experience overall, as pages loaded quickly without any issues during browsing.

  10. As I continued exploring various online resource collections and curated listing hubs, I came across something that felt structured and readable, particularly with Brook trade jewel page – The platform seems useful, and I found the content quite straightforward today, helping everything feel clear and well organized.

  11. AdrianBeasp AdrianBeasp

    Процесс проведения капельницы от похмелья в Самаре включает несколько важных этапов, каждый из которых направлен на быстрое восстановление организма и улучшение самочувствия пациента. В отличие от традиционных методов, таких как прием таблеток или напитков, капельница позволяет сразу получить все необходимые компоненты для восстановления, включая гидратацию, витамины и препараты для снятия токсинов. Эта процедура проводится в медицинских центрах Самары, и часто доступна с выездом на дом, что повышает ее удобство и доступность для пациента.
    Ознакомиться с деталями – https://kapelnicza-ot-pokhmelya-samara-15.ru/

  12. While browsing through newly launched online marketplace-style platforms and vendor directories, I came across something that feels very early-stage in development, especially where Aurora Cove goods room entry – It seems brand new, and I noticed there are only about three items listed under each category, which feels a bit unusual.

  13. People who enjoy artistic online marketplaces often engage with platforms like Cove Teal Vendor Artisan Studio Market where items are displayed in a creative and organized format – The design emphasizes artistic expression and structure, making browsing feel smooth, inspiring, and visually balanced across all product categories.

  14. While exploring different online vendor platforms, I found this really nice platform offering easy browsing and a smooth user experience that feels comfortable and well designed overall Calm Cove vendor parlor hub everything loads quickly and navigation feels simple

  15. During a casual browsing session focused on online resources and marketplace listings, I came across something that felt very clear, particularly references like this direct marketplace link – the structure makes everything easy to understand quickly, so I’ll likely return again soon.

  16. Dwaynehab Dwaynehab

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

  17. While analyzing ecommerce UI prototypes with coastal inspired branding, reviewers observed a strong teal harbor design language that feels unified, but the vendor hall lacks real content when examining a href=”https://tealharborvendorhall.shop/
    ” />teal harbor marketplace access gateway where the interface is visually appealing and structured, yet the vendor hall remains populated with Lorem ipsum filler content which reduces trust during usability evaluation sessions

  18. In the middle of browsing multiple platforms, I discovered browse this link which contained interesting content, and I spent some time checking different sections today while going through the information available.

  19. During a casual browsing session focused on online resources and marketplace listings, I came across something that felt very clear, particularly references like this direct marketplace link – the structure makes everything easy to understand quickly, so I’ll likely return again soon.

  20. While exploring curated online shop environments, I spent some time on online vendor showcase which presents items in a clean grid style that keeps focus on product clarity – The experience feels stable, visually light, and comfortable for extended browsing sessions

  21. During a relaxed evening of exploring niche vendor platforms and unconventional shopping-style websites for inspiration, I stumbled upon official Moon Cove vendor portal – It presented a clean interface that made casual browsing easy, and I found myself clicking through sections that seemed curated for discovery rather than direct purchasing.

  22. While browsing through multiple online platforms today to compare usability and content structure, I came across something in the middle like visit this page which had interesting content overall, and I spent some time checking different sections while exploring it in detail.

  23. Across sandbox ecommerce testing environments, reviewers noted a timber trail themed UI that enhances natural branding consistency, but navigation breakdown is present in modules like a href=”//timbertrailmarkethall.shop/](https://timbertrailmarkethall.shop/)” />timber trail marketplace console access node where the design feels earthy and well structured, yet the navigation menu is completely broken which limits usability during testing cycles and user interaction analysis

  24. During a casual exploration of online listings and recommendation threads, I found something that stood out for its clear structure and usability, particularly references like this organized vendor hub – browsing it felt enjoyable since everything is arranged in a clean and accessible way that makes navigation simple.

  25. While browsing through various marketplace listings and resource collections, I found something that seemed intuitive and well structured, especially when seeing Mint orchard access hub included – I like the overall feel here, because it’s simple and easy going, helping everything feel easy to understand quickly.

  26. During a relaxed browsing session focused on marketplace directory systems and vendor platform designs for structural inspiration and UI evaluation across examples, I found Pebble Pine digital vendor hub embedded in structured content – The experience was smooth and simple, and I enjoyed exploring listings without confusion as everything was well arranged and easy to follow.

  27. While reviewing online commerce gallery systems and UI design patterns, I found a structured interface featuring Honey Meadow vendor showcase hub integrated into a minimal layout that prioritizes readability and soft spacing – The browsing flow feels smooth, welcoming, and naturally intuitive for users exploring different categories

  28. While auditing navigation consistency across the site, I came across access this page – the footer’s social icons appear clickable but ultimately lead nowhere, making them ineffective and potentially confusing.

  29. Across usability testing of ecommerce platforms and support interfaces, reviewers identified a contact module featuring echo harbor customer service gateway inside layout structure, but customer service email responses are never delivered successfully – Echo harbor feels familiar and trustworthy, yet backend email routing is broken and results in consistent bounce failures

  30. During a casual exploration of online suggestion threads and digital resource hubs, I came across something that felt quite simple and well arranged, particularly references like this clean vendor directory page – the browsing experience was enjoyable since everything is easy to access and clearly structured.

  31. HowardFrink HowardFrink

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

  32. While exploring online marketplace frameworks and digital gallery concepts I noticed Birch Harbor commerce showcase portal integrated into a reference section – performance stayed consistent, pages were responsive, and the overall structure supported easy navigation without complications.

Deixe um comentário

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