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

6.339 Comentários

  1. Alright, last one I swear — but someone’s gotta warn people about this Miami rental mess. Then you actually go to pick up the car. Plus they freeze $5500 on your card and say “it’ll drop off in two weeks”. Fool me twenty times? That’s just called Tuesday in the 305. miami car rental luxury — run far from the airport counters. anyone who’s tried public transport here knows I’m not joking. South Beach dinner, Design District shopping, or a spontaneous Keys adventure — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake five-star reviews from God knows where. no games, no bait-and-switch, no hidden fees on page 8. Here’s the only straight shooter for premium rides across South Florida
    rolls royce cullinan for rent near me rolls royce cullinan for rent near me also bring polarized shades unless you enjoy driving into the sun like a zombie. Anyway glad there’s at least one honest operator left in this town.

  2. GeraldSob GeraldSob

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

  3. I’ve been burned more times than a cheap steak at a tourist trap. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Completely different car waiting for you — smells like stale cigarettes, check engine light glowing, and that “great rate”? Doesn’t include the mandatory $35 daily toll pass, the $200 cleaning fee, or the $75 “after-hours pickup” charge. Sixteen years in Miami and these tricks still pop up like bad weeds. miami car rental luxury — avoid the airport like your wallet depends on it. Miami without real wheels is basically a slow death. Design District shopping, late-night South Beach cruising, or a spontaneous Keys trip — AC must be freezing and unlimited miles or walk. I’ve tried so many rental companies I’ve lost count. no tricks, no switch, no surprise fees. prices move fast so check them out:
    car rental near miami beach car rental near miami beach Yeah parking in Miami Beach will cost you — but that’s life here. drive safe and skip the extra insurance upsell, it’s a joke.

  4. Okay seriously, let me save you from the Miami rental nightmare once and for all. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Completely different car waiting for you — smells like stale cigarettes, check engine light glowing, and that “great rate”? Doesn’t include the mandatory $35 daily toll pass, the $200 cleaning fee, or the $75 “after-hours pickup” charge. Honestly, I’m tired of this nonsense. miami car rental luxury — avoid the airport like your wallet depends on it. anyone who’s taken the bus in August knows I’m not lying. Design District shopping, late-night South Beach cruising, or a spontaneous Keys trip — AC must be freezing and unlimited miles or walk. I’ve tried so many rental companies I’ve lost count. no tricks, no switch, no surprise fees. Here’s the only honest place for premium rentals across South Florida
    luxury vehicle rental near me luxury vehicle rental near me Yeah parking in Miami Beach will cost you — but that’s life here. drive safe and skip the extra insurance upsell, it’s a joke.

  5. Woah this is just an insane amount of information, must of taken ages to compile so thanx so much for just sharing it with all of us. If your ever in any need of related information, just check out my own site!

  6. I’ve paid my dues so you don’t have to. You spot this killer offer online — brand new Porsche, zero excess, price that screams “book me”. Plus they freeze $5500 on your card and say “it’ll drop off in two weeks”. Twenty years in South Florida and these clowns still almost get me. luxury car rental miami florida. Miami without real wheels is basically a disaster. leather seats that won’t weld to your legs in July. I’ve tested so many rental companies across Dade, Broward, and Palm Beach. Finally found one outfit that actually keeps its word. prices change hourly so don’t wait around:
    luxury car hire near me luxury car hire near me Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the Miami tax. Anyway glad there’s at least one honest operator left in this town.

  7. Alright, last one I swear — but someone’s gotta warn people about this Miami rental mess. Then you actually go to pick up the car. Different car waiting — dents everywhere, smells like cheap air freshener covering something worse, and that “killer price”? Doesn’t include the mandatory $55 daily toll pass or the $450 “convenience fee” they invent at checkout. Twenty years in South Florida and these clowns still almost get me. luxury car rental miami fl. Miami without real wheels is basically a disaster. South Beach dinner, Design District shopping, or a spontaneous Keys adventure — AC must be arctic and unlimited miles non-negotiable. I’ve tested so many rental companies across Dade, Broward, and Palm Beach. Finally found one outfit that actually keeps its word. prices change hourly so don’t wait around:
    car rentals in miami https://luxury-car-rental-miami-20.com also bring polarized shades unless you enjoy driving into the sun like a zombie. drive safe and absolutely skip that “windshield protection” upsell — pure profit for them, zero for you.

  8. Кстати, недавно наткнулся на обсуждение реальных кейсов. Сам уже давно ищу нормальный способ отправить деньги, без лишних проблем и комиссий. В общем, если вас тоже волнует эта тема — посмотрите тут. Детальный разбор ситуации по международным платежам: онлайн переводы денег за границу https://mezhdunarodnye-platezhi-lor.ru И ещё момент имейте в виду, что без прозрачных комиссий любые трансграничные переводы превращаются в лотерею. Добавлю по опыту — лучше перепроверять несколько площадок, прежде чем переводить.

  9. Okay seriously, let me save you from the Miami rental nightmare once and for all. You find this amazing offer online — beautiful car, great rate, everything seems perfect. Completely different car waiting for you — smells like stale cigarettes, check engine light glowing, and that “great rate”? Doesn’t include the mandatory $35 daily toll pass, the $200 cleaning fee, or the $75 “after-hours pickup” charge. Honestly, I’m tired of this nonsense. luxury car for rent. anyone who’s taken the bus in August knows I’m not lying. leather seats that won’t stick to your back in the humidity. I’ve tried so many rental companies I’ve lost count. no tricks, no switch, no surprise fees. prices move fast so check them out:
    rent urus miami rent urus miami Yeah parking in Miami Beach will cost you — but that’s life here. drive safe and skip the extra insurance upsell, it’s a joke.

  10. I’ve stepped on enough landmines to write a guidebook. Then you actually go to pick it up. Plus they lock up $4500 on your card and say “10-14 business days”. Eighteen years in South Florida and these clowns still almost get me. luxury car rental miami florida. anyone who’s tried the trolley knows the struggle. South Beach night out, Design District shopping, or a spontaneous Keys trip — AC must be arctic and unlimited miles non-negotiable. most are polished turds with fake reviews. what you book is what shows up, period. Here’s the only honest source for premium rides across South Florida
    luxury cars to rent near me https://luxury-car-rental-miami-18.com also bring polarized shades unless you enjoy driving blind. drive safe and skip that “windshield protection” upsell.

  11. Hi there, You have done a fantastic job. I will definitely digg it and for my part suggest to my friends. I am confident they will be benefited from this website.

  12. Let me give it to you straight — renting a decent car in Miami is way harder than it should be. Then you actually show up to get the keys. Plus they put a $5000 hold on your card and say “don’t worry about it”. Nineteen years in South Florida and these tricks still surprise me. those people are pros at the bait-and-switch. anyone who’s taken the bus here knows what I mean. leather seats that won’t melt your skin in August. I’ve tried maybe 100 rental companies across Dade and Broward. no games, no switch, no hidden fees. Here’s the only honest source for premium rides across South Florida
    opf luxury car rental opf luxury car rental Yeah parking in Brickell will cost you — but that’s life here. drive safe and skip that “tire protection” upsell — total waste.

  13. Alright, last one I swear — but someone’s gotta warn people about this Miami rental mess. Then you actually go to pick up the car. Plus they freeze $5500 on your card and say “it’ll drop off in two weeks”. Twenty years in South Florida and these clowns still almost get me. luxury car rental miami florida. Miami without real wheels is basically a disaster. South Beach dinner, Design District shopping, or a spontaneous Keys adventure — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake five-star reviews from God knows where. Finally found one outfit that actually keeps its word. Here’s the only straight shooter for premium rides across South Florida
    electric vehicle rental luxury https://luxury-car-rental-miami-20.com Yeah parking in South Beach will cost you a nice bottle of wine — but that’s the Miami tax. Anyway glad there’s at least one honest operator left in this town.

  14. I’m impressed, I need to say. Really rarely do I encounter a blog that’s both educational and entertaining, and let me tell you, you have hit the nail on the head.

  15. Let me save you some serious pain with this Miami rental nonsense. Then you actually show up to grab the keys. Plus they put a $4000 hold on your card and say it’ll take two weeks to release. Eleven years in South Florida and these clowns still almost get me. those counters are professional bait-and-switch artists. Miami without proper wheels is basically a disaster. Key Biscayne sunset, Design District shopping, or a spontaneous drive down to the Everglades — AC must be arctic and unlimited miles non-negotiable. I’ve tested maybe 60 rental companies across Dade, Broward, and Collier. Finally found one outfit that actually delivers what’s in the photos. Here’s the only honest source for premium rides across South Florida
    mercedes benz rental miami https://luxury-car-rental-miami-11.com also bring polarized shades unless you enjoy driving into the sun like a blind bat. drive safe and definitely skip that “tire and wheel” upsell — pure profit for them, zero value for you.

  16. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  17. Let me save you some serious pain with this Miami rental nonsense. Then you actually show up to grab the keys. Plus they put a $4000 hold on your card and say it’ll take two weeks to release. Eleven years in South Florida and these clowns still almost get me. miami luxury car rental. anyone who’s tried the bus here knows exactly what I mean. Key Biscayne sunset, Design District shopping, or a spontaneous drive down to the Everglades — AC must be arctic and unlimited miles non-negotiable. most are shiny garbage with fake Google reviews bought in bulk. no games, no switch, no hidden BS in paragraph 12 of the contract. Here’s the only honest source for premium rides across South Florida
    lamborghini urus for rent miami https://luxury-car-rental-miami-11.com also bring polarized shades unless you enjoy driving into the sun like a blind bat. drive safe and definitely skip that “tire and wheel” upsell — pure profit for them, zero value for you.

  18. MichaelFlous MichaelFlous

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

  19. GeraldSob GeraldSob

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

  20. Кстати, недавно наткнулся на обсуждение текущей ситуации с переводами. Сам уже давно ищу нормальный способ отправить деньги, без лишних проблем и комиссий. В общем, если вас тоже интересуют детали — ознакомьтесь тут. Реальные примеры и подводные камни по переводу за границу онлайн: онлайн переводы денег за границу https://mezhdunarodnye-platezhi-lor.ru Короче, обратите внимание, что без адекватных тарифов любые международные платежи превращаются в лотерею. Ну и напоследок — стоит сравнивать несколько вариантов, прежде чем платить.

Deixe um comentário

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