Can I know what is the use of commands like " SGID(set group id), " SUID (set userid) " in Solaris 10. Please give me an example

Thanks & Regards
Kranthi