Search:

Type: Posts; User: lordofdarkness

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    6,946

    i tried to modify the nanosleep system call but...

    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...
  2. Replies
    11
    Views
    6,946

    Thanks for your great help MK27. i will post the...

    Thanks for your great help MK27. i will post the solution as soon as i correct my errors:)
  3. Replies
    11
    Views
    6,946

    thanks for your help:) i also found that which...

    thanks for your help:)
    i also found that which works fine


    #include <stdio.h>
    #include <sys/time.h>

    millisleep(int i)
    {
    struct timeval tv;
  4. Replies
    11
    Views
    6,946

    So is there any way to convert the algorithm? And...

    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...
  5. Replies
    11
    Views
    6,946

    milliSleep systemcall

    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...
  6. Replies
    0
    Views
    4,038

    process scheduling

    hi everyone;
    i want to make scheduling in my program. For example


    pid2 = fork;
    switch(pid){
    case -1:
    error
    case 0:
    child1
  7. Replies
    1
    Views
    3,990

    fork problem

    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...
  8. Replies
    7
    Views
    12,249

    Thank you all for your great help. Orion's...

    Thank you all for your great help. Orion's algorithm solved my problem.
  9. Replies
    7
    Views
    12,249

    first of all sorry for my english. i think i...

    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...
  10. Replies
    7
    Views
    12,249

    finding path in directed graph

    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...
  11. Replies
    0
    Views
    1,542

    AVL Insertion tree

    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...
Results 1 to 11 of 12