Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

391
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda