WhoId refers to the users like any lead or contact. Say for example it can be either LeadID or ContactID.
WhatId refers to the objects like OpportunityID, AccountID, and others