The Blog

Writings from the mind of Steven Tammen. Occasionally comprehensible.

Deadlock Avoidance: The Banker's Algorithm

What’s this? If an operating system wishes to dynamically avoid deadlocks between processes that share resources in a mutually exclusive way with no preemption, then it needs to always ensure that it only allocates resources when a process asks for them if doing such does not put the system into an “unsafe” state (i.e., one in which deadlock could occur). To avoid this, there is the so-called “banker’s algorithm.” A very rough implementation:

Purchases: Week of 9-22-19

The reason for these posts I’ve long been meaning to force myself to justify any purchase before I make it. I’m not a terribly impulsive person in the sense of buying things on a whim (far from it in fact; I probably actually have a tendency to over-research everything), so the reasoning behind this is less to minimize frivolous spending and more to leave me a record of the reasoning that went into purchase decisions so that if I need to make a similar purchase again in the future (or give advice to someone else concerning a similar purchase), I will have something to go on.

Rough Guide for Setting Up an SBT Project

This post is targeted at CSCI 4370/6370 (Databases) people at UGA. We are expected to use Java 12, SBT as a build tool, as well as JUnit for unit testing. This post touches on using Git and setting up the SBT and JUnit bits. Git I almost can’t imagine doing a group project of the magnitude expected in this class without version control, so if you don’t know git stuff, here’s some of the basics.

Website Basics

Network services required for (most effectively) running a website A webpage is a page that you can visit on the internet that has it’s own address (e.g., https://www.steventammen.com). Webpages are collected into websites. Websites require various services to make them publicly accessible and functional. Domain name registrar Each web address is unique: you cannot have more than one steventammen.com. For this reason, web addresses must be registered with people known as domain registrars.

Rambly Nutrition Thoughts 08-14-19

Some starting links Lurker’s Guide to Leangains 11 Reasons I Stick With Intermittent Fasting and Leangains What’s the Difference Between Casein and Whey Protein? Some nutrition ramblings Intermittent fasting Intermittent fasting makes consuming less calories easier by taking advantage of the appetite-suppressing effects of fasting. It also burns fat (ketosis), and induces autophagy (thought to be beneficial to overall wellness, especially long-term). As soon as you consume calories (“breaking the fast”), you drop out of ketosis and lose the appetite suppression, fat-burning, and autophagy benefits.

06-18-19

Today we visited Pompeii. I will say that there were far more tourists than I was expecting, and I found myself horrified at the behavior of many people. There were employees of the archaeological site whose full time job was to shout at people touching ancient monuments (or worse). The only food in the archaeological site was overpriced, and the lines to get it were really long. Other people aside, the archaeological site itself was pretty great.

06-17-19

Today we visited the ancient Roman city of Puteoli, which was an important port city for the Romans. Puteoli had a rather impressive amphitheater, and it was here that we talked about Roman gladiatorial games in-depth. We also visited Cumae, an ancient Greek colony that had one of the famed Greek sibyls in antiquity. There is also an air of mystery about the place given its use in Agrippa’s campaign against the rebellious Sextus Pompey (the son of Pompey the Great) during the time Octavian was centralizing power.

06-14-19

Today we visited the Esquiline wing of the Domus Aurea, a massive palace complex that Nero built after the fire of 64 AD. Access to the Domus Aurea is a bit more limited than other monuments in the city (you have to get a special form of permission to see it, to my understanding). It’s all underground, so while it was ~95 degrees outside when we went in, it was quite a bit colder in the Domus Aurea, to the point where some people in our group were shivering!

Travel Blogging Is Hard

Background Ever since I broke off blogging about my time in Rome once things got too busy, I’ve had the expectation of catching back up and finishing what I started. I’ve even promised people that I’d finish, and been saying that I would once I got back stateside. However, I had an online class to wrap up, some other travel to deal with, and responsibilities related to job-hunting (it has begun!

06-13-19

Today we visited the forum! In addition to seeing most of the important monuments in the forum, we discussed the twin concepts of regularization and monumentalization, as well as memory theater and the forum’s later shift into a symbol of Rome and her history. Overview of the forum Figure 1: A view from down in the forum Background In the swampy land between three hills: Capitoline, Palatine, Esquiline.