That exact one or something similar?
In what material?
On what machine?
Imagine the single one as a nut on a piece of left hand threaded rod. If a rotating cutter were suspended above the nut, and the nut turned clockwise, it would rise up the rod. During that time, any part of it touchung the cutter would remove anything it touched.
A vertical threaded rod and horizontal cutter would work best. The left hand thread rod could be 3D printed at the correct pitch and a left hand thread nut printed onto which you sit the item to be cut and rotate.
The double one is the same, but the thread pitch would be finer.
You would need to finish the vertical step in a secondary operation afterwards (with a file).
On a milling machine, you could do it with a vertical cutter and a universal dividing head geared to the leadscrew of the machine, so as the dividing head rotates, the table advances the work into the cutter.
In wood, something akin to the Trend router lathe would work - it combines longitudinal movement with rotational movement.