A Portable Framework for High-Speed Parallel Producer/Consumers on Real CMP, SMT and SMP Architectures