Magnetic locks, like electric strikes, use electromagnetism to regulate the locking mechanism. They depend on electrical power, whether from a building current or a battery, and as a consequence they are as reliable as a refrigerator, television , or bedside alarm clock.