Search:

Type: Posts; User: mirfanud

Search: Search took 0.01 seconds.

  1. Thread: recursion

    by mirfanud
    Replies
    4
    Views
    1,077

    recursion

    Hi,
    I have a simple tree and I just want to print the parent id and the child ids using recursion. I have somthing like this.

    2
    / ...
  2. Thread: recursion

    by mirfanud
    Replies
    2
    Views
    1,013

    recursion

    Hi all,

    I have a simple problem to solve using recursion. What I want to do is to traverse my Tree which has parent and child nodes. something like this
  3. Replies
    9
    Views
    1,631

    i know about clock, but the problem is that i...

    i know about clock, but the problem is that i will use this in multiple threads, and clock will include time of all threads scheduled between two points.

    I checked the buffer after changing the...
  4. Replies
    9
    Views
    1,631

    Hey, I code it like this. Can you help me in...

    Hey,

    I code it like this. Can you help me in fixing the size and offset in the profil. And also how to receive the number of cpu ticks from the function, is that the return value of profil.


    ...
  5. Replies
    9
    Views
    1,631

    If I am right I can get address of a function...

    If I am right I can get address of a function like this

    void (*foo)() = NULL;
    foo = &thread;

    but it does return me 1 always, any idea to get it correctly?

    how to make the buf to point to...
  6. Replies
    9
    Views
    1,631

    thanks, how to specify the block of memory, if...

    thanks,

    how to specify the block of memory, if i want to profile between two points in a thread:

    thread ()
    {
    ....
    point1:
    ...
  7. Replies
    9
    Views
    1,631

    programming profiling using profil

    Hi,

    I want to profile my multithreaded (pthreads) program, and I found that I can use profil tool of linux. (man profil).

    But it does require arguments like:
    int profil(char *samples, size_t...
  8. Thanks. here is the link to code :...

    Thanks. here is the link to code : http://pastebin.ca/1272318

    I created three threads X, Y and Z. I use GetThreadTime to get the time at the start of the thread and then execute the thread for an...
  9. Thanks. But the problem with RDSTC is that it...

    Thanks. But the problem with RDSTC is that it does compute the time elapsed for all the threads running. I want to compute the execution for each thread. And it might not be short execution time...
  10. Hey I have the same problem. I want to measure...

    Hey
    I have the same problem. I want to measure the execution time between two instructions in multiple posix threads. like


    void func()
    {
    instruction1:
    for();
    while();
Results 1 to 10 of 10