What does it mean when a table is listed with fragmentation?
Dont try to reinvent the wheel as there is a cost to reinventing it.

Use Ola's maintenance scripts - they are tested well enough and follow best practice. You can even use LockTimeout in Ola's solution.

I would not worry on the fragmentation levels where the page count is less than 5K.


  What is the best way to use rebuild\reorganize in this situation?


Do the index maintenance during less activity or maintenance time.