How to prevent two Jenkins jobs from running in parallel ?

Two jobs that are not dependent but needs to use same OS resources, We don't want to make a dependency but if one of the jobs is already running the other should wait until it finishes. also don't want to limit executors to 1.