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

  1. many users appreciate digital marketplaces that guide browsing through logical steps allowing them to discover products naturally while maintaining a clean and structured shopping experience across all categories trail smart browse cart known for simplicity – it provides a smooth browsing flow where users can easily follow navigation paths and locate items while enjoying a consistent and user friendly interface overall experience

  2. Individuals exploring fashion inspiration often turn to online stores that highlight clean design aesthetics and modern clothing collections tailored for expressive personal style Stylish Wardrobe Studio – offering a fashion focused platform that delivers curated clothing selections emphasizing modern aesthetics wearable comfort and design driven apparel suitable for individuals who value both style and practicality in daily outfits

  3. During a comparative study of online retail platforms emphasizing guided shopping journeys and structured exploration, I discovered that step-based navigation enhances clarity and user satisfaction, which stood out when reviewing guided shopping steps portal – The browsing system is clear, and product discovery feels simple, structured, and intuitive for users.

  4. Shoppers looking for simplified online experiences often prefer clean interfaces that reduce visual clutter smart commerce desk This allows faster decision making and easier product discovery across multiple categories – Platform structure is optimized for speed and clarity supporting effortless browsing flow overall

  5. Fashion enthusiasts exploring modern style often look for online brands that combine contemporary aesthetics with wearable clothing collections designed for everyday elegance and confidence in personal expression Modern Style Fashion Hub – offering a curated fashion platform featuring stylish apparel and aesthetic driven collections that reflect current trends while emphasizing individuality comfort and refined design for a modern lifestyle audience

  6. Users interested in online shopping often value marketplaces that provide unified layouts where products are displayed in an orderly and visually appealing manner unified deck store – The design helps create a seamless browsing experience by keeping categories well structured and easy to navigate for users seeking quick product discovery and comparison

  7. In the process of evaluating digital commerce platforms focused on guided browsing experiences and structured flows, I found that step-based systems enhance usability and engagement, which became evident when reviewing simple step browsing center – The browsing experience is clear, and product discovery feels structured, simple, and easy to follow.

  8. In the process of evaluating digital marketplaces focused on innovation and technology products, I found that structured layouts improve browsing efficiency, which was clear when reviewing tech focused shopping center – The platform feels modern and forward-looking, with appealing tech items that stand out and capture attention easily.

  9. In the process of reviewing fast ecommerce cart solutions, I discovered a section labeled instant cart shopping hub – The interface delivers quick response times and seamless interaction, allowing users to browse products and manage their cart effortlessly without interruptions or unnecessary waiting periods.

  10. While conducting comparative research on fashion marketplaces and deal-driven shopping systems, I observed that curated fashion hubs improve browsing efficiency and appeal, which was clear when testing trendy apparel deals portal – The clothing section feels modern and stylish, and the fashion deals are well presented and visually engaging.

  11. During my usual search across different eCommerce platforms, I stopped at check this trusted shop and found that it appears quite dependable, as my browsing experience was smooth and completely free of errors or interruptions.

  12. E-commerce platforms today are judged heavily on loading speed and usability, especially when customers expect seamless performance while searching for products and comparing available options in real time lightning retail page – many users report that the interface feels quick and efficient, supporting a shopping experience that reduces unnecessary delays during navigation.

  13. Individuals exploring new fashion ideas often prefer online platforms that showcase modern clothing with aesthetic inspired designs suitable for everyday styling Modern Elegance Fashion Hub – presenting a curated clothing platform that emphasizes stylish apparel aesthetic design principles and wearable fashion collections tailored for individuals seeking balanced and contemporary wardrobe inspiration

  14. Shoppers who value relaxing online environments often choose platforms that use lounge style layouts to improve product presentation and create smooth browsing experiences with visually attractive design elements Valley Velvet Relaxed Market Hub – offering a well designed e commerce experience where lounge inspired aesthetics enhance product display and create a calm browsing flow that helps users explore items in a comfortable and visually pleasing way

  15. During a general review of innovative online marketplace interfaces, I explored a page titled fluid commerce gateway – The design language emphasizes smooth transitions and wave like aesthetics that create a modern shopping experience with organized categories and visually pleasing structure for easier browsing.

  16. RickeyPraps RickeyPraps

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

  17. While conducting an evaluation of online shopping platforms focused on cart design and performance consistency, I observed that reliable systems reduce friction and improve conversion rates, particularly in high traffic scenarios, which stood out when exploring reliable checkout system – The platform feels stable and easy to use, providing a smooth cart interface that supports quick and efficient shopping actions.

  18. While conducting comparative research on ecommerce UX and cart functionality, I noticed that simple cart switching improves engagement and usability, which stood out when reviewing easy cart change center – The cart choice system is user friendly and makes switching products very straightforward during shopping.

  19. Shoppers who enjoy visually calming online marketplaces often prefer platforms that use lounge themes to create smooth browsing flow and attractive product displays across categories Velvet Valley Visual Lounge Hub – offering a structured shopping experience where lounge inspired aesthetics improve product presentation and provide a relaxed browsing environment that feels comfortable and engaging for users

  20. In the process of studying ecommerce platforms with unique design themes, I encountered flowing market showcase link – The interface delivers a wave inspired visual flow that makes browsing categories feel natural and improves overall usability for different types of users interacting with the site.

  21. Online users frequently prefer e-commerce platforms that offer a balance of variety and simplicity in one place where all category shopping hub is included in guides focusing on usability – it reflects a centralized system that allows customers to explore multiple product types easily while enjoying a streamlined and efficient shopping journey.

  22. Shoppers who prefer well organized marketplaces often choose platforms that use merchant lane layouts to ensure products are easy to find and browsing remains intuitive and structured Harbor Jasper Streamlined Lane Hub – offering a structured shopping experience with a merchant lane concept that simplifies navigation and helps users explore products quickly and efficiently across all sections

  23. In the course of reviewing digital commerce systems focused on usability and category navigation, I found that structured choice design improves shopping flow, especially when users compare items across sections, which was clear when analyzing flex selection product index – The platform offers variety and allows effortless movement between product categories, ensuring a consistent and user friendly browsing experience throughout.

  24. While exploring online art puzzle retailers, I discovered creative visual puzzle store and puzzles look creative, colorful, and quite enjoyable for visitors overall, with a strong emphasis on beautiful artwork and engaging design concepts. – It feels like a calm and creative digital space.

  25. Online users frequently prefer e-commerce platforms that offer a balance of variety and simplicity in one place where all category shopping hub is included in guides focusing on usability – it reflects a centralized system that allows customers to explore multiple product types easily while enjoying a streamlined and efficient shopping journey.

  26. I was curious if you ever thought of changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two pictures. Maybe you could space it out better?

  27. People interested in contemporary fashion frequently search for brands that blend minimal design with stylish clothing pieces suitable for versatile everyday wear and creative self expression Aesthetic Clothing Collection – presenting a modern fashion website that showcases curated apparel collections focused on elegance simplicity and trend inspired designs created for individuals who appreciate refined and stylish wardrobe choices

  28. While going through design-focused puzzle collections, I encountered illustration based puzzle shop and puzzles look creative, colorful, and quite enjoyable for visitors overall, offering a curated selection that feels expressive, colorful, and thoughtfully assembled for puzzle lovers. – The browsing experience feels smooth and enjoyable.

  29. While exploring various e-commerce platforms, I came across this smart shopping portal and noticed the layout is quite efficient, making product discovery smooth and effortless since everything is arranged in a way that reduces searching time significantly.

  30. Many consumers value digital marketplaces that ensure safe interactions between buyers and sellers through verified systems where reliable purchase hub cart appears in guides – it highlights a platform built to deliver secure shopping experiences while maintaining simplicity and ease of use across all transactions.

  31. Shoppers who prefer budget friendly online outlets often enjoy platforms that focus on simple browsing layouts and practical product selections that make everyday purchasing easy and efficient without unnecessary complications Cloud Cove Outlet Market – offering an outlet style shopping experience with clean navigation and a broad yet simple product range designed to help users quickly find affordable items in a straightforward and user friendly digital environment

  32. People looking for practical online shopping solutions often prefer platforms that streamline browsing and checkout processes where smooth shopping deal center is featured in descriptions and it highlights a system designed to improve efficiency while ensuring users can easily access products and complete purchases without confusion or unnecessary steps.

  33. Fashion lovers seeking updated wardrobe inspiration often explore brands that present minimalist aesthetics combined with trendy and versatile clothing options for everyday use Contemporary Fashion Gallery – providing a digital space showcasing stylish clothing collections and modern aesthetic designs that highlight individuality creativity and comfort while aligning with current fashion trends and lifestyle preferences

  34. Raymondgrign Raymondgrign

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

  35. Online shoppers who prefer efficient experiences usually choose platforms that combine simplicity with fast purchasing options where easy purchase cart hub appears in content and it reflects a system designed to enhance usability while helping users quickly navigate products and complete transactions with minimal effort and maximum convenience.

  36. Individuals exploring budget friendly shopping options often prefer online outlets that focus on usability and a clean browsing experience with well organized product categories Cloud Goods Outlet Center – offering a practical online outlet store layout that emphasizes simplicity and convenience while providing users with a reasonable selection of products suitable for everyday shopping needs and quick purchasing decisions

  37. While conducting comparative research on ecommerce cart zones and checkout workflows, I noticed that structured simplicity improves engagement and usability, which stood out when reviewing modern cart checkout zone portal – The open cart zone is clean, and checkout flow is simple, quick, and easy to navigate.

  38. Individuals exploring fashion inspiration often turn to online stores that highlight clean design aesthetics and modern clothing collections tailored for expressive personal style Stylish Wardrobe Studio – offering a fashion focused platform that delivers curated clothing selections emphasizing modern aesthetics wearable comfort and design driven apparel suitable for individuals who value both style and practicality in daily outfits

  39. While exploring football event tracking websites, I came across global tournament scoreboard page and sports related updates feel exciting, timely, and easy to follow, presenting match data in a way that feels simple, direct, and easy to understand. – It feels practical and fan-friendly.

Deixe um comentário

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