Posts

Mutex vs. Semaphore, what is the difference?

The Toilet Example  (c) Copyright 2005, Niclas Winquist ;) Mutex: Is a key to a toilet. One person can have the key - occupy the toilet - at the time. When finished, the person gives (frees) the key to the next person in the queue. Officially: "Mutexes are typically used to serialise access to a section of  re-entrant code that cannot be executed concurrently by more than one thread. A mutex object only allows one thread into a controlled section, forcing other threads which attempt to gain access to that section to wait until the first thread has exited from that section." Ref: Symbian Developer Library (A mutex is really a semaphore with value 1.) Semaphore: Is the number of free identical toilet keys. Example, say we have four toilets with identical locks and keys. The semaphore count - the count of keys - is set to 4 at beginning (all four toilets are free), then the count value is decremented as people are coming in. If all toilets are full, ie. there are n...

Can you still believe it? :-)

Image
Linux Kernel Summit 2011 second day official photo. I'm there on top, under the fourth from right to left.

Can you believe it? :-)

Image
October 25, 2011. The last day of Kernel Summit 2011. Photo cortesy of  Jonathan Corbet .

Media subsystem workshop 2011 - Prague - Oct 23-25

Image
To me those were the richest days of the event. Thank you Mauro and Angela! Photo cortesy of: http://linuxtv.org/events.php

Finally I have my books!

My books were delivered today. The DHL guy woke me up today morning, less than a week after placing my order. Amazon were fast this time. I'm happy. :-)

Bad Amazon

On May 20 2011 I've placed an order at Amazon for three books: C Programming Language (2nd Edition) The Design of the UNIX Operating System [Prentice-Hall Software Series] Operating Systems Design and Implementation (3rd Edition) The delivery estimate was set to June 20, 2011. Today July 30, 2011, the books did not arrived yet. I've contacted Amazon after June 20. Amazon asked me to wait until July 22. On July 25 they gave me total refund. Well, this is my first non success story about Amazon but I'm warned about no tracking information when using Expedited International Shipping. It is almost unbelievable. How can Amazon send $ 300 USD order without having tracking information? Yesterday I've ordered the same books plus other two. But this time I'm using the expensive Priority International Courier. The delivery estimate is: August 3, 2011 - August 9, 2011. Let's see if it will arrive this time. The new order: C: A Reference Manual (5th Edition) ...

The official: HOWTO do Linux kernel development

See full document at: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/HOWTO;hb=HEAD