Heparin works by activating antithrombin III that is already present in the blood.
Warfarin works by reducing the rate of active prothrombin production. The prothrombin concentration then decreases slowly as the prothrombin that is already in the blood disappears.