With two swap partitions and configuring so each Linux install uses only one, you could get the ability to:
Suspend to disk in one install
Use the other for a while
Shutdown or suspend that
Resume the first suspended system.
That might be tricky to get working even if you have two swap partitions. It probably isn't something you even want to be able to do.
Originally Posted by gabytf
Is there any advantages if i set two swap partitions?
I stretched pretty hard above to reach the "maybe" answer to your question. The more likely answer is "no".
If the swap partition(s) are shared, I don't think you could resume a suspended Linux if you used the other one after suspending.