Easy parallelization with Bash in Linux
Easy parallelization with Bash in Linux Two articles that show how concurrency can be utilized for bash scripting. Part 1 - pipes and xargs thread pool Part 2 - process substitution and flocks I love...
View ArticleEasy parallelization with Bash in Linux, part 2
Easy parallelization with Bash in Linux Two articles that show how concurrency can be utilized for bash scripting. Part 1 - pipes and xargs thread pool Part 2 - process substitution and flocks In the...
View ArticleWhy execve()-like system() call is a must-have
How do you usually call an external program in Linux? Whichever language you use, you may fork() your process, and call exec() afterwards; you runtime library surely supports these primitives. However,...
View ArticlePipes in Linux and in The Real World
Linux pipes and open3 Three articles on how open3 is implemented in Linux, and how it is properly used Pipes in Linux and in The Real World — introduction to the concept of pipes How to Implement Open3...
View ArticleHow to Implement open3
Linux pipes and open3 Three articles on how open3 is implemented in Linux, and how it is properly used Pipes in Linux and in The Real World — introduction to the concept of pipes How to Implement Open3...
View ArticleHow to Use Open3 and Avoid Dead Locks
Linux pipes and open3 Three articles on how open3 is implemented in Linux, and how it is properly used Pipes in Linux and in The Real World — introduction to the concept of pipes How to Implement Open3...
View ArticleRuby on Rails Errors and Solutions
When you develop something in Ruby on Rails, you will most likely encounter strange errors here and there. These errors may look like language or framework bugs, but they are not. Most likely, they are...
View ArticleCounting Visits Efficiently with "Wide Caching"
One of the features of the web forum engine, a clone of which I develop in Ruby on Rails, is that it displays some site usage statistics. There are two kins of statistics it displays. First, it tracks...
View ArticleConsistency Models Explained Briefly
Wikipedia used to do a pretty bad job at explaining the theoretical foundations behing the different consistency models of multithreaded/distributed systems. Especially cryptic was the definition of...
View ArticleA Mutex Puzzle
I wrote earlier that I know very few decent programming puzzles. To be more precise, I know one, The Prisoners Riddle. So I was reading that The Art of Multiprocessor Programming book (I already made a...
View ArticleMultithreaded Consensus Versus Practice
Many programmers complain that most of what they've learned in their universities is completely useless in their daily work. Anecdotal evidence, a survey among some MIPT alumni, suggests that the...
View ArticleHow Reader Mutexes Can Deadlock
Sample Deadlock Translucent areas depict waiting for something; incomplete lock statements have dashed border. Note that it doesn't matter in which order the top two acquisitions are made. Can a...
View Article
More Pages to Explore .....