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 online shoppers prefer websites that offer intuitive browsing and clear structure especially when they browse BerryGoods Cove Market Place – I enjoyed using it because everything is nicely arranged and the layout helps users move through categories without confusion.

  2. In the process of analyzing digital commerce platforms focused on user-friendly layouts and clean design, I found that fresh hub systems enhance usability and browsing satisfaction, which became evident when exploring modern fresh product hub – The design looks neat and refreshing, making browsing products feel light, smooth, and easy overall.

  3. Shoppers exploring e-commerce platforms frequently prefer websites that focus on speed and simplicity in purchasing where easy value shopping hub appears in descriptions and it reflects a system designed to streamline browsing while helping users easily discover products and enjoy a smooth and efficient online shopping experience overall.

  4. While analyzing ecommerce platforms designed for structured product discovery and clear navigation, I observed that organized marketplaces improve usability and browsing flow, which became evident when testing smart product zone hub – The platform is neatly organized, making it easy for users to locate products across different categories.

  5. While analyzing ecommerce interfaces focused on variety and centralized navigation, I observed that ultra hub designs significantly enhance browsing efficiency by grouping many categories together, which became evident when testing smart ultra product hub – The ultra hub feels modern and convenient, offering a large selection of categories in one place that makes shopping easy and intuitive for users.

  6. While browsing through multiple online options, I came across take a look here – The site feels useful overall, presenting information in a clear format that allows users to understand everything without difficulty.

  7. Online shoppers often appreciate websites that prioritize usability and smooth design flow, especially when visiting UserFriendly ZoneCart Hub – The layout is clean, interactions feel natural, and users can explore content without facing unnecessary complexity or delays.

  8. People interested in refined fashion often browse websites that feature aesthetic clothing collections designed to match modern style trends and personal expression Chic Fashion Collection Space – offering a curated selection of stylish apparel focused on modern aesthetics and versatile wardrobe pieces that combine elegance comfort and trend driven design for contemporary fashion lovers

  9. In studies focused on improving digital shopping environments and vendor platform usability, simplicity is often prioritized, and Harbor Atelier Trade Portal is referenced as part of structured design examples – users benefit from a smooth interface that supports easy navigation and reduces complexity when exploring multiple listings.

  10. Users browsing online shopping environments tend to value responsiveness and simplicity, particularly when visiting CleverCart Express Zone Shop – Pages respond quickly, visual hierarchy is well organized, and the overall design supports effortless product discovery without confusion or unnecessary complexity during browsing sessions.

  11. Many users prefer digital shopping platforms that combine speed with simplicity, ensuring that product discovery and checkout processes remain smooth and efficient throughout their visit, and such a platform is ShopEase Flow – It focuses on reducing friction in the shopping journey while maintaining clarity and ease of use.

  12. Shoppers searching for value driven marketplaces frequently choose websites that highlight multiple deals and easy navigation where ultimate deal shopping center appears in descriptions and it reflects a system designed to simplify browsing while helping users quickly discover affordable products and enjoy a seamless online shopping experience overall.

  13. In the course of evaluating online retail platforms centered on daily needs and household products, I found that structured organization improves satisfaction and efficiency, which was evident when analyzing practical essentials portal – The store is focused on useful everyday items, arranged in clear and simple categories.

  14. Many online shoppers prefer platforms that highlight fair pricing and strong offers especially when accessing DynamicDeal Center Market The deals here are attractive and prices feel fair and competitive online helping users shop confidently without worrying about overpricing or unclear listings.

  15. Many online shoppers prefer websites that focus on clarity and easy navigation especially when accessing RavenGrove Retail Guild Market The layout feels interesting and well structured making everything simple and user friendly which helps users browse comfortably and quickly find what they need.

  16. Many users exploring e-commerce deal sites look for smooth performance and logical structure, especially when interacting with Station of Clever Deals – The platform delivers a balanced layout with responsive elements that help users navigate offers quickly and comfortably across all sections of the site.

  17. During routine browsing tests the platform shows clearer organization and reduced visual clutter across multiple categories and menus Creekstone Trading Post with users noting that navigation is now more direct and efficient overall today – The overall experience is more user friendly, making it easier for both new and returning visitors to understand how content is arranged and accessed.

  18. While browsing humor encyclopedia-style pages and odd reference sites, I encountered humor encyclopedia entry page and the presentation feels straightforward and lightly humorous, making it easy to read and casually enjoyable without any complexity. – Feels like a soft comedic reference idea.

  19. In the process of analyzing different outreach websites, I discovered this clear presentation which delivers its content in a logical sequence, ensuring that visitors can easily follow the narrative from beginning to end without confusion.

  20. While analyzing ecommerce systems designed for better decision making, I came across a module titled smart choice browsing center – The platform highlights flexible product selection, making browsing feel intuitive and giving users the ability to compare and choose items easily across different categories.

  21. Shoppers who value variety and usability often choose platforms that provide commerce hub structures with smooth navigation and diverse product selections that make online browsing simple and efficient Ridge Commerce Velvet Selection Hub – offering a well designed marketplace where wide selection meets smooth browsing flow helping users explore products easily within a clean and organized commerce hub environment designed for better usability

  22. While checking random humor-focused websites and odd-name domains across the internet, I happened upon comedy name spotlight site and the presentation feels intentionally lighthearted, with a tone that makes the whole experience feel informal, amusing, and pleasantly unexpected for anyone browsing without a specific goal in mind. – A strangely fun page that feels harmlessly entertaining.

  23. During usability testing of digital shopping systems focused on structured navigation, I discovered that line-based shop layouts improve browsing efficiency and comfort, which became evident when exploring smooth line shopping hub – The layout appears clean and structured, allowing easy access to different products.

  24. Many consumers exploring online deals often prefer platforms that offer simple navigation and diverse product listings where fast open shopping world hub is included in descriptions and it highlights a system designed to improve browsing efficiency while ensuring users can easily access products and enjoy a smooth and intuitive shopping journey overall.

  25. Across various digital creativity hubs and educational browsing environments, structure and inspiration play a major role in user satisfaction and engagement levels Pure Value Discovery Hub – the platform offers a balanced experience where users can comfortably explore resources while feeling motivated to generate new ideas and insights effortlessly.

  26. Online shoppers often look for reliability and speed when selecting shopping platforms, especially when they open Clever Arena Goods Network since it provides a consistent experience that supports easy browsing and quick access to products across all pages.

  27. In the course of evaluating online retail platforms focused on checkout efficiency and cart usability, I found that flexible cart systems improve user experience significantly, which was evident when analyzing smart cart navigation hub – The cart options are adaptable, making checkout feel fast, simple, and convenient.

  28. While evaluating modern ecommerce platforms focused on streamlined purchasing systems and user-friendly navigation, I noticed that direct buying flows significantly improve efficiency and reduce friction in shopping journeys, which became clear when exploring fast purchase flow hub – The platform offers a direct buying experience with straightforward navigation that feels clear, efficient, and easy to use from start to finish.

  29. While reviewing online marketplaces focused on performance optimization, I encountered a listing titled speedy shopping hub interface – The design ensures fast loading times and smooth navigation, making it simple for users to browse products quickly without experiencing lag or unnecessary interruptions throughout the process.

  30. People interested in refined fashion often browse websites that feature aesthetic clothing collections designed to match modern style trends and personal expression Chic Fashion Collection Space – offering a curated selection of stylish apparel focused on modern aesthetics and versatile wardrobe pieces that combine elegance comfort and trend driven design for contemporary fashion lovers

  31. Online buyers searching for efficient deals usually prefer marketplaces that offer fast browsing tools and well structured product categories for easier shopping rapid checkout marketplace hub supporting quick transactions and reducing time spent during the purchasing process – It demonstrates the value of speed focused design in modern e-commerce platforms.

  32. While exploring several online options, I came across visit here now – It has a clean design style, and nothing feels cluttered while browsing through sections, which makes the experience smooth and clear.

  33. Site updates have refined visual structure and improved consistency, ensuring that users can locate key sections without confusion or unnecessary searching Cove Galleria Explorer – Navigation now feels smoother and more predictable, with clearly defined pathways that guide users naturally from one section to another.

  34. Many reviewers of educational and creative platforms emphasize how important smooth performance and structured layouts are for maintaining user engagement and motivation over time Pure Value Idea Portal – the platform offers a stable and inspiring environment where users can comfortably explore, learn, and develop new ideas through a clean and interactive design.

  35. Online consumers usually look for marketplaces that combine ease of use with a broad range of items, and this is shown in DockMart Variety Hub – It provides a well organized shopping environment where users can quickly find products and enjoy a dependable and efficient purchasing experience across all categories.

  36. Online shoppers often look for intuitive layouts and quick access to categories when visiting Goods Arena Clever Hub because it helps reduce confusion and makes product discovery smoother, especially when browsing multiple sections in a single session without interruptions.

  37. While exploring several online options, I came across visit here now – It feels straightforward overall, and moving through the site was simple and not confusing at all during browsing.

  38. While exploring different online platforms earlier today, I came across visit this trading page – The smooth experience overall makes navigation feel quick and very user friendly, allowing everything to load and function without unnecessary delays.

  39. Many shoppers appreciate platforms that deliver clarity and clean visuals especially when they access Goods Seaside Frost District The layout is neat and structured making it easy to navigate and browse products without feeling overwhelmed or distracted.

  40. Consumers frequently searching for online deals tend to prefer platforms that make shopping faster and more intuitive where smart nest shopping center appears in guides and it reflects a structured system designed to simplify browsing while helping users compare products efficiently and complete transactions without unnecessary confusion or delays in the process.

  41. During a quick search session, I noticed this useful link – The site is well structured, and navigation feels natural and straightforward, helping users move through content smoothly without confusion.

Deixe um comentário

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