Strict 2PL: Only EXCLUSIVE locks are released/unlocked after performing a commit action.
Rigorous 2PL: Both SHARED and EXCLUSIVE locks are released/unlocked after performing a commit action.
Now, consider following example:
Hope this solves your doubt!