How wp-cron can run in background if PHP is single threaded?

How wp-cron can run in background if PHP is single threaded?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)