My laptop was randomly freezing.So After a lot of hassle I have found that Nvidia graphics driver is the criminal for this situation.May be my laptop hangs for this randomly or bios could not find the real driver to make companion with the Nvidia PhysX GPU.
And another cause I have found that my old version adobe master collection CS 6 also making deadlocking situation with.windows.
Solution:
First clean install windows then update it fully.Then install driver one by one that is needed.Then install software you need and keep records.If anything harms for you then uninstall this soft after a hard restart if it is freezed thatt time.Or you can make login to ubuntu if it is installed in your pc then delete those files are hampering your work.And work perfectly in windows
Now everything is fine.Alhamdulillah