How common is osteomyelitis i.e. infection of the bone?

How does one prevent this, and how does one deal with this?