In other words, the process of mining consists of miners performing a myriad of hash functions with many different nonce values until a valid output is produced. If the hashing output of a miner falls below the predetermined threshold, the block is considered valid and is added to the blockchain. If the output is not valid, the miner keeps trying with different nonce values. When a new block is successfully mined and validated, the process starts over.
The average number of hashing attempts is automatically adjusted by the protocol to ensure that each new block is generated - on average - every 10 minutes. This process is known as difficulty adjustment and is what determines the mining threshold (i.e., how many zeros the block hash needs to start with to be considered valid). The difficulty in mining a new block is related to the amount of hashing power (hash rate) committed to a blockchain system. The more hashing power dedicated to the network, the higher the threshold will be, meaning that more computational power will be required to be a competitive and successful miner. In contrast, if miners decide to stop mining, the difficulty will be adjusted, and the threshold will drop, so less hashing power will be required to mine, but the protocol will make sure that the block generation follows a 10-minute schedule, regardless.