5,666 views
13 13 votes

In a lottery scheduler with 40 tickets, how we will distribute the tickets among 4 processes $P_1, P_2, P_3$ and $P_4$ such that each process gets 10%, 5%, 60% and 25% respectively?

  $P_1$ $P_2$ $P_3$ $P_4$
A 12 4 70 30
B 7 5 20 10
C 4 2 24 10
D 8 5 30 40

5 Answers

2 2 votes

Option C.

Just multiplying the percentages with total no. of tickets.

P1: 40 * 10%=4

P2: 40 * 5%=2

P3 : 40 * 60%=24

P4 : 40 * 25%=10

1 1 vote
uNumber of ticket gained by the P1=40x10/100=4

Nmber of ticket gained by the P2=40x5/100=2

Number of ticket gained by the P3=40X60/100=24

Number of ticket gained by the P3=40x25/100=10
0 0 votes

25% = 1/4

50% = 1/4 = ( 2 * 25% )

75% = 3/4 = (3 * 25% )

10% 40 = 4

5% = 10% / 2 = 4/2 = 2

60% = 6 * 10% = 6*4 = 24 

25% = 5* 5% = 5 * 2 = 10 or  1/4 * 40 = 10

option C

0 0 votes

 

This quection solved by using Options:-

In Option A Sum of all Processes is greater than 40 so it is not possible.

In option B Sum of all Processes is 42 but total tickets is 40 so it is also not possible.

In option c sum of all processes is equal to no of tickets so it is correct ans.

Answer:
Position:
Show:

Related questions

7 7 votes
2 answers 2 answers
5.7k
5.7k views
go_editor asked Jun 19, 2016
5,666 views
Consider the following program.main() { fork(); fork(); fork(); }How many new processes will be created?8675
16 16 votes
2 answers 2 answers
14.0k
14.0k views
go_editor asked Jun 19, 2016
13,964 views
Suppose a system contains $n$ processes and system uses the round-robin algorithm for CPU scheduling then which data structure is best suited ready queue of the processst...
7 7 votes
2 answers 2 answers
13.2k
13.2k views
go_editor asked Jun 17, 2016
13,169 views
If there are 32 segments, each size 1 k bytes, then the logical address should have13 bits14 bits15 bits16 bits
94 94 votes
7 answers 7 answers
36.4k
36.4k views
Ishrat Jahan asked Oct 29, 2014
36,383 views
A hard disk system has the following parameters :Number of tracks $= 500$Number of sectors/track $= 100$Number of bytes /sector $= 500$Time taken by the head to move from...