Semaphores allow processes to avoid clashes when accessing shared resources, for instance shared memory. Generating A Random Key Humans aren't very good at picking random values so use a site like this one: www.random.org/integers/ It won't do a 32bit 1 to 2147483647, but it will do 1 to 1000000000 Simple Example Of Creating & Using […]