www.webdeveloper.com
Results 1 to 3 of 3

Thread: Мock Zend PHP certification exam question

  1. #1
    Join Date
    Nov 2017
    Posts
    2

    Мock Zend PHP certification exam question

    Hi everybody.

    During my mock Zend PHP certification exams I have came across the following question that I have researched online but have not found a definitive, and understandable, answer to them. Can anyone advise what the answers to these may be or point me in the right direction?

    Consider 3 PHP files that are called asynchronously via XmlHttpRequest:

    // s1.php
    session_start();
    sleep(1);

    // s2.php
    session_start();
    sleep(2);

    // s3.php
    session_start();
    sleep(3);

    Which of the following statements is true? (Choose two.)

    A. The total execution time for all 3 requests will be the maximum of the longest sleep() call

    B. The requests may be processed out of order

    C. The requests are guaranteed to be executed in order

    D. Concurrent requests will be blocked until the session lock is released


    Тhank you in advance.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    22,282
    I believe D is true, since they are not adding the read_and_close option to their session_start() calls.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Nov 2017
    Posts
    2
    Thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"