V-masu stem + ながら
while doing (both at once)
Two actions by the *same person* at the same time. The main action is the second clause — 音楽を聞きながら勉強する is studying, with music on. For two different people acting at once, use 間に instead.
音楽を聞きながら勉強します。
おんがくを ききながら べんきょうします。
I study while listening to music.
歩きながら食べないでください。
あるきながら たべないで ください。
Please don't eat while walking.