i tried to modify the nanosleep system call but it gave segmentation fault. My code is :
asmlinkage int sys_millisleep(int amount)
{
struct timespec *rqtp;
struct timespec...
Type: Posts; User: lordofdarkness
i tried to modify the nanosleep system call but it gave segmentation fault. My code is :
asmlinkage int sys_millisleep(int amount)
{
struct timespec *rqtp;
struct timespec...
Thanks for your great help MK27. i will post the solution as soon as i correct my errors:)
thanks for your help:)
i also found that which works fine
#include <stdio.h>
#include <sys/time.h>
millisleep(int i)
{
struct timeval tv;
So is there any way to convert the algorithm? And can you explain me the meaning of the arguments of nanosleep function? there are 2 struct pointer arguments(and struct has also 2 arguments--tv_sec...
hi everyone.
i want to write a milliSleep systemcall to my kernel but i'm not supposed to use nanosleep function internally with a clever parameter tweak:)
my millisleep function should be like...
hi everyone;
i want to make scheduling in my program. For example
pid2 = fork;
switch(pid){
case -1:
error
case 0:
child1
hi everyone;
i want to create 2 prrocesses with fork command and first child will print the number from 0 to 9 with 1 second delay (and then will exit) and the other child will write the same number...
Thank you all for your great help. Orion's algorithm solved my problem.
first of all sorry for my english. i think i couldn't explain my problem properly.
no come back is allowed. you can think that A is the start point and D is the finish so all possible paths for 4...
hi everyone.
i need to find all possible paths for directed graph with dynamic programming.
let me clarify. i have a path from 1 to n and this is a straight line. every line has a value. i need a...
I need to write an AVL insertion algorithm but no matter how hard i tried i couldnt . i will just read from a file for records like 30,60,70,50,20,40,10,80 and then will print them on the screen by...