Add several examples using pthread