Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

390
Vistas
PHP is single-threaded , How job and queue works in laravel?

I had an interview yesterday, He asked me a question. PHP is a single-threaded language then how jobs and queues work in laravel behind the scenes?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

Single-threaded doesn't mean you can't launch multiple instances of the program, it means the program cannot execute multiple parts of itself simultaneously.

With this consideration in mind, you'll easily understand that when you are running the queue with php artisan queue:work, a new worker (a PHP process) starts and executes every new jobs pushed to the queue.

This worker runs alongside any other programs, single-threaded or not.

over 4 years ago · Santiago Trujillo Denunciar

0

In Laravel queues are run as independently with PHP CLI using php artisan queue:work and has no relation with threading ...

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda