Jump to content

Recommended Posts

PHP sends SQL queries to a MySQL server, so the MySQL server receives those queries and executes them.

 

Can you link to the place where you read about this?

Link to post
Share on other sites

A queue is a standard buffering technique. It is also called a FIFO buffer. It is usually used to store and pass data between two asynchronous systems. See...

 

http://en.wikipedia.org/wiki/Queue_%28abstract_data_type%29

 

--- edit ---

 

Yes, this is analogous to people waiting in line at a checkout counter. People enter the post office asynchronously and are later processed at a different rate which depends on the services they require from the clerk.

Link to post
Share on other sites

thank you for the link

After reading the link , am I right or wrong when I say that a queue is a collection of organized data that are processed and executed in a first-in-first-out policy ? and if I am right , are the data ,sent by a php application and received by the server database , awaiting for execution organized in a queue and executed in first-in-first-out??? like a group people, in a rank , waiting in the post office . the first who comes is served then it goes then comes the second then and so on .....is it the same with server database ?

Link to post
Share on other sites

After reading the link , am I right or wrong when I say that a queue is a collection of organized data that are processed and executed in a first-in-first-out policy ?

Correct.

are the data ,sent by a php application and received by the server database

It doesn't matter. The definition of a queue does not depend on any language or database.PHP implements a queue using a doubly-linked list:http://php.net/manual/en/class.splqueue.php
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...