Answer and explanation :
the three control problems associated with competing process are
- MUTUAL EXCLUSION : We know that some resources are shareable and some are not shareable. which means only one process can access the resource at a time this type of resources are called critical resources this code can be access at only one process at a time. the other process if required to access should not be allowed
- DEADLOCK: this hold the process without complete for example suppose there are two resources R1 and R2 and two process P1 and P2 and P1 use R1 and P2 use R2 but after some time when P1 needs R2 but R2 is not available as it is used by P2 so the all process will be on hold
- STARVATION : when priorities are given to the process as high priorities and low priorities. And high priorities process always competing then low priorities process have to wait for very long time this is called starvation
Answer:
The answer is below
Explanation:
The the sql command to list the total sales by customer , month , and product, with subtotals by customer and by month and a grand total for all product sales is:
SELECT S.CUS_CODE, T.TM_MONTH, S.P_CODE,
SUM(S.SALE_UNITS*S.SALE_PRICE) AS "TOTSALES"
FROM DWDAYSALESFACT AS S INNER JOIN DWTIME AS T ON S.TM_ID =
T.TM_ID
GROUP BY S.CUS_CODE,T.TM_MONTH,S.P_CODE WITH ROLLUP;
Media-queries.css should be linked last, the same as if your media queries were in the same file (always go last)
Answer:
credits = (credits < 0) ? 0 : credits;
Explanation:
This is the ternary conditional operator.
Answer:
<?php
$mysqli = new mysqli("127.0.0.1:3307", "myUser", "myPass", "databasename");
$query = "SELECT * FROM users ORDER BY name";
if($result = $mysqli->query($query))
{
echo '<ul>';
while ($obj = $result->fetch_object())
{
echo '<li>'.$obj->name.'</li>';
}
$result->free();
echo '</ul>';
}
else
{
die("nothing found");
}
$mysqli->Close();
?>
Explanation:
This should get you started.