Which one is correct?

  •  
  • 171
  • 7
  • 1
  • English 
Aug 01st 2011 17:01
1. My wife was cooking in the kitchen while I was working in the garden.
2. My wife was cooking in the kitchen when I was working in the garden.

I think "while" is right and better. But is "when" also right? If not, what's the reason?

Thank you in advance! ^^