What is the difference between an embedded system and dedicated system?
An embedded system is embedded in some larger device/system. For example, a computer used to control a car is embedded, or the microprocessor controlling e.g. a washing machine.

A dedicated system is one which is used for one task only, like file serving or running a database.

Most embedded systems are dedicated (to their specific task(s)). There isn't a clear cut definition.