What wrong with this Operating System?

My problem is that my dock is gone. The whole screen turns black and when I click a key on my keyboard nothing will happen.
What kind of problem is this? I thought Mac OS is the carrier of all viruses. Is this a virus or something?
