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

  1. Shoppers exploring creative vendor marketplaces often shared positive impressions of sites such as Wild Harbor Bazaar Desk – the wide range of items made exploration engaging, while shipping reliability and fast order processing were commonly mentioned benefits among returning customers.

  2. People who enjoy elegant ecommerce presentation often engage with sites like Stone Collective Gilded Luxury Hub where items are displayed in a sophisticated and visually cohesive format – The interface creates a premium shopping experience that feels structured, stylish, and consistent with high end branding expectations across all categories.

  3. In discussions about improving user experience on marketplace websites, many contributors point out how structured navigation reduces confusion, and the inclusion of Orchard Shop Navigator supports this idea by offering a clearer path through various listings, helping users reach relevant products more efficiently.

  4. After browsing through several websites that varied in clarity and design, I discovered check this resource and noticed it had a nice overall structure, making everything easy to access and view while navigating through different pages smoothly.

  5. Online shoppers frequently prioritize platforms that reduce friction during browsing and help them find products quickly without unnecessary complexity, especially when catalogs are large and diverse, and this is reflected in ShopCove Atelier – the design focuses on fast loading performance and structured navigation so users can move smoothly between categories and complete their shopping experience with ease.

  6. Users exploring modern ecommerce galleries often appreciate how fluid visual layouts improve engagement when browsing platforms such as Ginger Stone Art Galleria Hub where products are arranged in a stylish exhibition format that enhances clarity – The galleria style layout creates a smooth and visually engaging browsing experience, making it easy for users to explore products while enjoying a balanced and aesthetically appealing interface.

  7. While browsing different online vendor platforms, I noticed how a smooth interface and well arranged pages can significantly improve the overall user experience Sage Harbor vendor room hub the site feels pleasant to use today with clear structure and easy navigation across all sections

  8. During my time browsing online vendor collections and trade showcase platforms, I had several usability questions that were answered in a very friendly manner, SnowHarbor Vendor Support Gallery and that level of assistance made the site feel trustworthy, smooth, and easy to explore without confusion.

  9. During a weekend session of exploring ecommerce platforms I checked usability and catalog design and discovered Harbor Pearl Craft Depot – Shopping experience was excellent, site loads fast and feels reliable which made product discovery fast, easy, and enjoyable with a responsive interface that supported smooth navigation throughout the visit

  10. In my review of online marketplace systems I focused on product visibility interface design and overall browsing comfort MarbleCove Commerce Flow Studio everything felt clean and stable and the great layout made everything simple and I enjoyed how easy it was to navigate improving user satisfaction overall

  11. During late night research into ecommerce websites I explored multiple platforms and discovered Harbor Pearl Goods Hub – Shopping experience was excellent, site loads fast and feels reliable which created a smooth browsing experience with quick loading pages and an intuitive layout that made product discovery easy

  12. In my search for design inspiration hubs online, I explored visual inspiration market and noticed how the visuals are arranged to promote a calm and engaging browsing flow – it delivers a balanced experience that supports both exploration and relaxation

  13. During research into online vendor hub systems and trade gallery designs for structural comparison and UX insights across several references, I encountered Pebble Creek commerce hub explorer inside the article flow – The layout was well structured and I enjoyed exploring different sections since everything felt intuitive and easy to navigate throughout the session.

  14. People who prefer simple browsing experiences often engage with sites like Harbor Vendor Chestnut Display Hall where listings are arranged for clarity and ease of use – The vendor hall design ensures smooth navigation, allowing users to find products quickly without unnecessary complexity or clutter in the browsing flow.

  15. During testing of various online storefront frameworks I noticed a highly organized system that allowed me to browse categories smoothly and efficiently BerryCommerce Flow Studio and I found desired items quickly without any confusion or difficulty navigating through the product sections provided.

  16. While exploring different online vendor marketplaces I focused on catalog clarity and usability before finding Ginger Cove Product Hub a site that made everything extremely easy to browse and understand quickly – Simple and clean interface overall shopping was very straightforward and easy to navigate today experience

  17. People exploring curated shopping platforms often highlight importance of intuitive navigation which makes it easier to compare different products without confusion or delay, especially on Alpine Goods Explorer where checkout experience was very straightforward with fast processing and clear confirmation steps provided – Checkout experience was very straightforward, with fast processing and clear confirmation steps provided.

  18. During exploration of modern shopping platforms, I found a clean and minimal interface that emphasized usability and clear product organization throughout VendorFoundry BirchBrook Exchange – browsing felt efficient and natural, with well arranged sections that helped streamline the process of locating items without unnecessary complexity or delays.

  19. Наркологический центр «НОВЫЙ НАРКОЛОГ» в СПб специализируется на лечении алкоголизма и наркомании с медицинским сопровождением. Программы включают детоксикацию, терапию осложнений, психотерапевтическую поддержку и последующую реабилитацию. Такой подход помогает не только снять острые симптомы, но и сформировать устойчивую мотивацию к трезвости.
    Подробнее – капельница от запоя на дому цена

  20. During my search for eco-friendly household products, I came across GreenLivingEmporium – the inventory is extensive, and selecting sustainable, stylish items was surprisingly simple and completely satisfying.

  21. Design consistency across ecommerce platforms helps build trust, improve usability, and enhance overall customer satisfaction during browsing in everyday interactions online significantly. CloudCove Creative Shop Site – It provides a visually appealing interface with well-organized content sections, ensuring users can explore products without unnecessary complexity or confusion throughout the journey smoothly.

  22. Many digital tools designed for brainstorming and inspiration rely on structured layouts that guide users naturally through content without overwhelming complexity or clutter Pure Value Inspiration Flow – the platform creates an environment where ideas develop organically while users enjoy smooth transitions between different sections and topics.

  23. During an extended review of curated online trade platforms, I explored VelvetBrook artisan showcase portal embedded within a thoughtfully spaced interface that highlights content clearly – The browsing experience feels steady and polished, allowing users to focus on visuals and details without unnecessary interruptions or overwhelming design elements

  24. In my review of digital marketplace platforms I studied navigation flow design consistency and user engagement across product listings CalmBrook Vendor Market Loft the interface felt well structured and fast and I found what I needed without any trouble creating a comfortable and efficient browsing experience overall

  25. Looking for cozy blankets online brought me to SnuggleHavenShop – the selection is vast, the website is easy to navigate, and discovering soft, stylish options was both enjoyable and effortless.

  26. people browsing digital shopping sites often prefer systems that minimize clutter and highlight essential product information clearly across all sections and categories presented clear path market often described as intuitive and easy to navigate – it allows users to move through listings comfortably while maintaining a sense of structure and simplicity throughout the shopping experience

  27. When analyzing online vendor platforms and their performance in terms of usability and design clarity, many testers note that well-organized sections greatly improve shopping efficiency while browsing through Harbor Hazel Vendor Works – Smooth browsing experience, products are clearly displayed and accessible, helping users stay focused while exploring categories that are logically arranged for easier decision-making and smoother navigation overall experience.

Deixe um comentário

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