Jump to content
Sign in to follow this  
anselm_eickhoff

Background: A Tale of Two Worlds

4 posts in this topic Last Reply

Recommended Posts

Interesting Read! It's always neat to read about the logic that goes into developing software, especially when said software is still under development. I wonder what that Super Secret Mindblowing Update is. I guess we're just gonna have to wait.

Hope everything else is going good for you as well. Look forward to the next proof of life update...;).

Share this post


Link to post
Share on other sites

This is nothing new and startling.  In the old days is was called a deadly embrace because A is trying to update B but can't because B is locked, but B is trying to update A, but A has set its lock because it is a critical section of the code.  This all requires adroit use of semaphores or gates on lists within objects or sometimes objects and/or lists of objects.  Modern computers are so fast that a general program pause could go by without the user noticing it while a save was in progress.  That is, the whole program simulation stops (freezes) momentarily while the save is organized in a buffer then can be released while the write progresses.

I've done a lot of transaction processing in my time, and you ought to try this will a couple of thousand users all trying to update the same set of files at the same time.  It has been solved for years.  You need to arrange it so that events within the simulation to be atomic (that is, each event is discrete and complete).  Where there are thousands of events going on, this becomes a horror show, but it can be done.  Acceptable response times for commercial applications like banking are on the order of three seconds or less.  I imagine for a graphics game 3,000 ms is an eternity, so it has to be much quicker than that for each thread.  Good luck.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an Account  

Sign up to join our friendly community. It's easy!  

Register a New Account

Sign In  

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Help Keep Simtropolis Online, Open & Free!

stexcollection-header.png

Would you be able to help us catch up after a bit of a shortfall?

We had a small shortfall last month. Your donation today would help us catch up for this month.

Make a Donation, Get a Gift!

We need to continue to raise enough money each month to pay for expenses which includes hardware, bandwidth, software licenses, support licenses and other necessary 3rd party costs.

By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

Each donation helps keep Simtropolis online, open and free!

Thank you for reading and enjoy the site!

More About STEX Collections