Question & Additional Information
 
What are conditions on which deadlock can occur while swapping the processes?
Add to My IQ
 

 | 
Inappropriate
Answer Title
Answer
 All processes in the main memory are asleep.

All 'ready-to-run' processes are swapped out.

 There is no space in the swap device for the new incoming process that are swapped out of the main memory.

There is no space in the main memory for the new incoming process.
Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Flag this interview question as inappropriate Inappropriate
See Answer
ps -ag
Create Date
:
Tuesday, May 13, 2008
Tags
:
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
  • To run the count program, which will display the process identification number of the job, enter: count &
  • To check the status of your job, enter: ps
  • To bring a background process to the foreground, enter: fg
  • If you have more than one job suspended in the background, enter: fg %#

    Replace  #  with the job number, as shown in the first column of the output of the jobs command.

  • You can kill a background process by entering: kill PID

    Replace PID with the process ID of the job. If that fails, enter the following:

    kill -KILL PID
  • To determine a job's PID, enter: jobs -l
  • If you are using sh, ksh, bash, or zsh, you may prevent background processes from sending error messages to the terminal. Redirect the output to /dev/null using the following syntax: count 2> /dev/null &
  • Create Date
    :
    Sunday, May 11, 2008
    Tags
    :
    Asked At
    :
    None
    Job Positions
    :
    Click here to improve the Interview Question, Answer and other fields.
    Comments (0) :
    Goto add your comment on the Question 
    Flag this interview question as inappropriate Inappropriate
    See Answer
    Binary Exponential Backoff Algorithm was chosen to dynamically adapt to the number of stations trying to send. If the randomization interval for all collision was 1023 slots, the chance of two stations colliding for a second time  would be negligible, but the average wait after a collision would be hundreds of slot times, introducing significant delay. On the other hand, if each station always delayed for either 0 or 1 slot, then if 100 stations ever tried to send at once, they would collide over and over until 99 of them picked 1 and the remaining station picked 0. This may take years. But having the randomization interval grow exponentially as more and more consecutive collisions occur, the algorithm ensures a low delay when only a few stations collide but also ensures that the collision is resolved in a reasonable interval when many stations collide. Truncating the backoff at 1023 keeps the bound from growing too large.
    Create Date
    :
    Monday, January 07, 2008
    Tags
    :
    None
    Asked At
    :
    None
    Job Positions
    :
    None
    Click here to improve the Interview Question, Answer and other fields.
    Comments (1) :
    1.
    hackone
    Tuesday, October 28, 2008 11:54 AM
    Binary Exponential Backoff Algorithm was chosen to dynamically adapt to the number of stations trying to send. If the randomization interval for all collision was 1023 slots, the chance of two stations colliding for a second time  would be negligible, but the average wait after a collision would be hundreds of slot times, introducing significant delay. On the other hand, if each station always delayed for either 0 or 1 slot, then if 100 stations ever tried to send at once, they would collide over and over until 99 of them picked 1 and the remaining station picked 0. This may take years. But having the randomization interval grow exponentially as more and more consecutive collisions occur, the algorithm ensures a low delay when only a few stations collide but also ensures that the collision is resolved in a reasonable interval when many stations collide. Truncating the backoff at 1023 keeps the bound from growing too large.
    Flag this interview question as inappropriate Inappropriate
    See Answer
    An objective person can compartmentalize their feelings, and has to in order to be objective. They cannot let their feelings get in the way of their thought processes. They rely on data and facts, not emotion when considering things. Depending on what the "question" is, they may consider the emotions of themselves and others as "factors" but do not allow them to control their thinking.

    If a person is getting all emotional, if they're making fast defensive statements, they're not being objective. They may be "rational" but that is not the same thing as objective.

    One of the Merriam Webster definitions of objective is: "expressing or dealing with facts or conditions as perceived without distortion by personal feelings, prejudices, or interpretations"

    My Answer: No. I find that objective people, are usually,very difficult to have a sensible discussion with.
    Most things in life are subjective and anybody who isn't aware of this, is probably, very young, or very limited in their perception and experience, of life.
    Create Date
    :
    Friday, July 11, 2008
    Job Positions
    :
    Click here to improve the Interview Question, Answer and other fields.
    Comments (3) :
    1.
    confucious
    Tuesday, July 29, 2008 1:57 PM
    I am a confused ..confused person :-)
    2.
    confucious
    Tuesday, July 29, 2008 1:56 PM
    I am a confused ..confused person :-)
    Flag this interview question as inappropriate Inappropriate
    See Answer
    In n-tier architecture the entire application is divided in several pieces. These pieces can be logical or physical. Each piece performs a specific task such as displaying user interface or data access. There can be any number of tiers or layers of such pieces. Hence, the name n-tier (Note that many times the terms tier and layer are used interchangeably). However, most commonly applications have 3 distinct tiers or layers. They are:
    • Presentation Layer
    • Business Logic Layer
    • Data Access Layer
    As you can guess, presentation layer is nothing but a piece of software that deals with user interface of your application. Displaying data to the end user and allow them to interface with it is the core functionality of this layer.

    In most of the cases the data entered by the end user needs some kind of validation or further processing. This is the responsibility of Business Logic Layer.

    Finally, your application data needs to be stored and retrieved in some data store (RDBMS, XML etc.). This task is handled by Data Access Layer.

    In short, the process works like this:

    • User requests for some application data.
    • The data access layer retrieves the data and is forwarded to the presentation layer via business logic layer. Sometimes data access layer gives this data directly to presentation layer.
    • Presentation layer receives the data to be displayed via business logic layer.
    • The user changes the data and initiates the appropriate action (such as insert, or update).
    • The business logic layer validates the data submitted by the user.
    • If the data is valid it is handed over to data access layer for updating into the database.
    Advantages of N-Tier ArchitectureAt first glance this division of tasks may seem to be unnecessary. However, it gives following benefits:
    • The applications gets divided in logically isolated pieces reducing tight coupling between the UI, business processes and database.
    • Change in the underlying database and data access methods do not have any effect on the presentation layer or client application.
    • Client application no longer has SQL statements embedded in it. This makes it de-coupled from rest of the application.
    • Table and column names can be effectively eliminated from the client-side code.
    • The client application is unaware from where data comes (location transparency).
    • It becomes easier to modify or extend your application, without breaking or recompiling the client-side code.
    The downside of n-tier architecture is that you need to create many isolated classes and pieces of software. However, benefits of n-tier applications will far outweigh its disadvantage.
    Create Date
    :
    Tuesday, June 10, 2008
    Tags
    :
    Asked At
    :
    None
    Job Positions
    :
    None
    Click here to improve the Interview Question, Answer and other fields.
    Comments (0) :
    Goto add your comment on the Question 
    Flag this interview question as inappropriate Inappropriate
    See Answer
    Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.  The connection string must be identical.
    Create Date
    :
    Tuesday, May 13, 2008
    Tags
    :
    Asked At
    :
    None
    Job Positions
    :
    Click here to improve the Interview Question, Answer and other fields.
    Comments (0) :