If you are hungry for a very long time then we can say that you are starving.
For example.
When you say "mom please give me some food I am hungry" , here you say hungry because you have not ate for few hours may be.
But when a begger says " sir please give me some food I am starving" , here he uses starv because he has not ate from few days.