You expect an answer but no mention of make, model, OS, how long after switching on does it happen, programs running at the time .................... etc. etc!!
And does the complete laptop freeze, or can you run ther programs. If you press Ctrl, alt, delete, can you then go into taks manager, and see what resources are being used etc.