It can mean you are doing two things at the same time. Whilst is a conjunction word.
Ex. I like to finish my homework whilst listing to music.
Whilst can also be used to compare something or someone.
Ex. Whilst he is a very good player, he is not a very good coach.