Pergunta de entrevista da empresa Bloomberg

How do you find out how many cpu's your linux machine is using and are they physical or virtual?