stubs for producer/consumer threads