If we declare a page isThreadSafe="false" then how the page will act?
Editorial / Best Answersatish_bakde
A JSP page is by default thread unsafe. That means when server finds a request to JSP, an instance is created and the request is processed. The code inside service method is processed. While in this process, if another request arrives, Server again starts executing the code inside service method for 2nd one. Multitasking is invoked to switch CPU between execution of these 2 threads created. Both are executing same code so, so if any thread changes a variable value and then second reads it, it will get changed one.
Though this is bad programming practise to have code like this, in case becomes unavoidable. At this time make page threadSafe="true". This will make service method synchronized and at a time only one thread will execute the code. other thread have to wait till that time. Assume how bad will be the response time of server when 100s of requests arrives at a time!
- What is the difference between page not found and page cannot be dislplayed
- Passing data between pages
- Multiple links testing with QTP
- Displaying a parameter with cognos in a ms xl spreadsheet
- How do we use or operator with desc programming.
- How to find the particular word in text file and how to split and capture total line of the founded word using vb scripting?
- How to split the line and capture the line in text file using v script in QTP?
- Mind twisting questions for report studio: try it
- Need to create a prompt page and report page linked
- Indexing on frequently updated table
- Write the testcase for login page
- Drill through in saved output asking sine on information
- Database design
- Python - how to write a function
- Variable declaration...
- Can you plz tell me the test cases for "account opening page" and "personnel information page" of bank management system..??
- Navigation to create a new virtual object
- Manual testing-if the different page has same functionality how do you execute it faster way?
- What exactly happens when aspx page is requested from browser?
- How to declare a variable with float (2 decimal places) in table creation in Oracle?