The word "whilst" is a conjunction that is primarily used in British English. It means "while" and is used to indicate that two events are happening at the same time or to contrast two ideas or situations.
The word "whilst" comes from the Old English term "hwil," meaning "a while." It has been used in English since the 14th century and is considered somewhat more formal than its synonym "while."