Can I interchange while and when in the following sentences?

1- He waited while/when I combed my hair.

2- He was waiting while/when I was combing my hair.

"while" is a better choice in both those sentences, at least in normal circumstances.


For posts on "when" and "while", see the links below. One or more of them may contain something you'll find useful.

When or while
The Past Simple/Continuous with a while/when clause
Time relationships
When / while he slept / was sleeping