which processes executed first

When we login to a solaris terminal then which processes executed first?
I beleive that first system profile file and user .profile gets executed. So please let me know what happens exactly.

The question may like this that which rocesses arre executed first while loging into unix server?

You are correct. The /etc/profile is procesed first, and then the .profile from the user's home directory.