Python Threading Queue Example In C