Questions

Q:

When is a system in safe state?

Answer

The set of dispatchable processes is in a safe state if there exists at least one temporal order in which all processes can be run to completion without resulting in a deadlock.

Report Error

View answer Workspace Report Error Discuss

7 8477
Q:

What is cycle stealing?

Answer

We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

Report Error

View answer Workspace Report Error Discuss

2 8471
Q:

Ravi, Rohan and Rajesh alone can complete a work in 10, 12 and 15 days respectively. In how many days can the work be completed, if all three work together?

A) 4 days B) 5 days
C) 3 days D) 8 days
 
Answer & Explanation Answer: A) 4 days

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

52 8470
Q:

19 persons do 19 programs in 19 hours . If they take 15 mins interval and then how much time they need to do 52 programs.

A) 23 hours B) 47 hrs 15 min
C) 52 hrs 15 min D) 22 hrs 15 min
 
Answer & Explanation Answer: C) 52 hrs 15 min

Explanation:

Since they can do 19 programs in 19 hours, Then 52 programs in 52 hours respectively.
And a 15 min interval
Total time they take to do 52 programs is 52 hours 15 minutes.

Report Error

View Answer Report Error Discuss

11 8465
Q:

What is good customer service?

Answer

Good customer service means having thorough knowledge of your inventory, experience with your products, and being able to help customers make the best choices for them.

Report Error

View answer Workspace Report Error Discuss

5 8462
Q:

Who termed the Indian Constitution as  "Quasi Federal" ?

A) D.D. Basu B) K.C. Wheare
C) Ivor Jennings D) M.V. Paylee
 
Answer & Explanation Answer: B) K.C. Wheare

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

31 8462
Q:

When was first train steamed off in India

A) 1848 B) 1853
C) 1875 D) 1880
 
Answer & Explanation Answer: B) 1853

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

19 8458
Q:

Undefined reference to 'pthread_create'

How to Fix this error?

Answer

This is a common error while compiling C program in Linux. This error occurs when you are using pthread_create function to create threads in your programs.


To fix this problem ensure following points:
Include header file pthread.h in your program.
Add –lpthread linker flag with compilation command.
1- Include Header file
#include <stdio.h>
#include <pthread.h>
...
...
2- Compile command
gcc main.c -o main -lpthread

Report Error

View answer Workspace Report Error Discuss

24 8447