Chapter 11. Resource Failure

“He's dead, Jim.”

Dr. Leonard McCoy in Star Trek: The Devil in the Dark

Computer scientists talk knowledgeably about “Turing-complete” programming languages, by which they mean a language that can be shown to be equivalent to a Turing machine and therefore provably able to solve any computation that can be expressed as an algorithm. A Turing machine is a hypothetical device invented by Alan Turing, and consists of a long tape passing under a read/write head that is capable of reading and printing characters on the tape according to a table of rules specifying what to do.

Unfortunately, no implementation of any programming language does or ever could live up to the strict definition of “Turing-complete,” since Turing specified that his machine was equipped with an infinitely long tape. He also specified that the machine was allowed an arbitrary amount of time to solve a problem, which is a luxury that few people outside of academia can afford.

This chapter is about what to do when your finite resources are too finite. We'll discuss how to react when you run out of time, memory, or disk space.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset