Pergunta de entrevista da empresa Codeplay Software

How would you implement a printf() function that could be called on a GPU ?