Zend
200-710 · Question #4
200-710 Question #4: Real Exam Question with Answer & Explanation
The correct answer is A. The total execution time for all 3 requests will be the maximum of the longest sleep() call. See the full explanation below for the reasoning.
Question
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.)
Options
- AThe total execution time for all 3 requests will be the maximum of the longest sleep() call
- BThe requests may be processed out of order
- CThe requests are guaranteed to be executed in order
- DConcurrent requests will be blocked until the session lock is released
Community Discussion
No community discussion yet for this question.