what is the difference between embed and attached in views?

  Views Embed
   In the Views module settings, you can choose to “Allow embedded displays”, and they can be used in code via views_embed_view().

   Views Attachment
   The Views Attachment option is to create yet another view that you can attach before and/or after any of the displays on your current view.