How do pilots rest on long-haul flights? When flying on a long-haul airliner flight in economy, often I find it very hard to fall asleep. However, when off cockpit duties, they still have to get rest so that they are able to control the aircraft without being exhausted and collapsing on the controls when they are on duty. Are there are any specific methods of helping pilots to gain the rest required on board an aircraft? Have there been any studies about the effectiveness of these?
Since a picture speaks for a thousand words...

These are often called "coffins" or "sarcophagus" around here... (Portugal)



Source