1. (to eat) Having eaten all the potatoes, she drank a cup of tea. 2. (to run) Running in the yard, I fell and hurt my knee. 3. (to write) Having written / Writing* his first book, he could not help worrying about the reaction of the critics. 4. (to wait) Having waited for some time in the hall, he was invited into the drawing-room.
* Два правильных варианта: когда он писал книгу или написав книгу, он не мог не беспокоится о реакции критиков