Its called dual booting. I know that ubuntu allows dual booting insert the USB or cd and go through the instillation process and there should be a option that allows you to set the partition and how big you want it to be. Then when its installed on your computers next start it should give you the option to run windows or ubuntu