Added Process I/O examples.
Added thread safety examples.