Search:

Type: Posts; User: mrityunjay23

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    364

    Semaphore and wtih shared memory

    I am beginner thread programmer. i have done some small program on thread creation locking and semaphore by using semaphore.h and pthread.h header files.I have got stuck in the following program. We...
  2. Replies
    2
    Views
    512

    I am trying with condition variables but I am not...

    I am trying with condition variables but I am not getting logic how to do with condition variable?
    Remember: m[i] th thread (thread which executing function text(m[i]) is called m[i] th thread)...
  3. Replies
    2
    Views
    512

    oredring thread execution via mutex

    I am trying to print i th letter of english by i th thread where i is a natural number one by one in the following program. I want to print A B C D E F... by the thread 1 2 3 4.... How to print the...
  4. Replies
    1
    Views
    419

    a issue in thread programming

    I have to create two threads. Then one thread will take input by using scanf function and then another thread will print the input value. How to do that. My following program is giving segmentation...
  5. In each string, I have to get all possible string...

    In each string, I have to get all possible string which we get from above procedure. Then we have to check condition that 5 continuation of some sub string must not appear. I have explaind every...
  6. Let abbabbabaab be a string on {a,b}. Now,...

    Let
    abbabbabaab be a string on
    {a,b}.
    Now, we make some subword from string.
    We have to make all substring which is of the form in which we can skip at most one symbol.
    eg.
    a..ba..bab..ab ...
  7. can a C program run for more than 3 days?

    I have written a C program. Which is running from 2 days. Till now, it has not given any output. On terminal ps-aux | grep a.out command shows 100% CPU utilization and .2% memory utilization.

    ...
  8. I accept that writing problem. But I am not...

    I accept that writing problem.
    But I am not getting why is it giving error.
    My earlier program is telling "Unintialized value created by malloc in main".


    Conditional jump or move depends on...
  9. valgrind Conditional jump or move depends on uninitialised value

    In this C program


    #include<stdio.h>
    #include<string.h>
    #include<math.h>
    #include<stdlib.h>
    #define p 200
    #define l 10
    char **ab;
  10. Replies
    4
    Views
    686

    #include #include...

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    /* h(a)=abcab,h(b)=acabcb,h(c)=acbcacb */
    void h_i(int len, char *w, char *a, char *b, char *c)
    {
    int j,p,i,wlen,w1len;
    char *w1;
    ...
  11. Replies
    4
    Views
    686

    segmentation fault at free() call

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>
    /* h(a)=abcab,h(b)=acabcb,h(c)=acbcacb */
    void h_i(int i, char *w, char *a, char *b, char *c)
    {
    int j,p;
    char *w1;...
  12. #include #include...

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>
    char **L;
    char **R;
    int *left;
    int *right;
    int mergelen;
    int overlap_last(char *st)
  13. We have given two sets of strings. Initial...

    We have given two sets of strings. Initial number of element in these two sets are four. We are processing second set elements concatenating one element of one set to another element of second...
  14. #include #include...

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>
    char **L;
    char **R;
    int *left;
    int *right;
    int mergelen;
    int overlap_last(char *st)
  15. works fine upto k=2 in main . k=3 in main after mergelen>66 free function gives error

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>
    char **L;
    char **R;
    int *left;
    int *right;
    int mergelen;
    int overlap_last(char *st)
  16. It has resolved. I was not able to realise this...

    It has resolved. I was not able to realise this mistake. Extremely Thank You
  17. #include #include...

    #include<stdio.h>
    #include<string.h>
    #include<stdlib.h>
    int ulen,slen,mergelen;
    char **final;
    int overlap_last(char *st)
    {
    int i,k,j,length;
    char last;
    int overlap_at;
  18. Double pointer final, printing final[0] garbaje after allocating memory to final[4]

    #include<stdio.h>
    #include<string.h>
    #include<stdlib.h>
    int ulen,slen,mergelen;
    char **final;
    int overlap_last(char *st)
    {
    int i,k,j,length;
    char last;
    int overlap_at;
Results 1 to 18 of 18