To provide a machine tool, control device, control method, and computer program capable of suppressing the time required for recovery.SOLUTION: A machine tool includes plural acting units that process workpieces, plural drive sources that drive the plural acting units, and a control device that controls driving of the plural drive sources. The control device includes a determination unit that detects the driving states of the respective drive sources, and determines whether the driving states pertain to a first state in which all the drive sources should be disabled from driving, a second state in which any of the drive sources should be disabled from driving and the other drive source should be enabled to drive, or a third state in which all the drive sources should be disabled from driving subsequently to predetermined driving, and an execution unit that executes drive or suspension of the drive sources on the basis of a result of the determination by the determination unit.SELECTED DRAWING: Figure 5
展开▼