A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of a centrosome, a structure comprised of a pair of centrioles and peri-centriolar material from which a microtubule spindle apparatus is organized.