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...
Type: Posts; User: mrityunjay23
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...
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)...
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...
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...
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...
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 ...
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.
...
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...
In this C program
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#define p 200
#define l 10
char **ab;
#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;
...
#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;...
#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)
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...
#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)
#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)
It has resolved. I was not able to realise this mistake. Extremely Thank You
#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;
#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;