/* Validate k_sched_lock() and k_sched_unlock() 
Lock the scheduler and create 3 threads. Check that the threads are not executed. Call k_sched_unlock() and check if the threads have executed. */
ZTEST(threads_scheduling, test_unlock_preemptible)
/* Validate k_sched_lock() and k_sched_unlock() 
Lock the scheduler and create 3 threads. Check that the threads are not executed. Call k_sched_unlock() and check if the threads have executed. */
ZTEST(threads_scheduling, test_unlock_preemptible)
{
	init_prio = 0;
	setup_threads();
	k_sched_lock();
	spawn_threads(0);
	k_busy_wait(100000);
	k_sched_unlock();
	k_yield();
	zassert_true(tdata[0].executed == 1);
	zassert_true(tdata[1].executed == 1);
	zassert_true(tdata[2].executed == 0);
	teardown_threads();
}