Problem with pointers, structures, and Pthread


 
Thread Tools Search this Thread
Top Forums Programming Problem with pointers, structures, and Pthread
# 8  
Old 12-19-2007
Quote:
Originally Posted by porter
... but how will you learn?
believe me it just an elective OS course i did not get started with it and the time kill my mindSmilie
# 9  
Old 12-19-2007
Quote:
Originally Posted by just student
it just an elective OS course
I'm not sure how that changes the situation. We don't do homework for people because that defeats the point of homework, which in turn devalues any qualification, which in turn wastes your time. So we are doing you a favour by pointing out the integrity of the matter.
# 10  
Old 12-19-2007
by the way, my major Electrical engineeringSmilie

i'm sorry for this, i just want some help


thank you anyway, i'm happy for your advise Smilie
# 11  
Old 12-19-2007
Quote:
Originally Posted by just student
thank you anyway, i'm happy for your advise Smilie
If you want specific help then ask away, we can best help those who also help themselves.
# 12  
Old 12-19-2007
i promise you this week i will give it to C language Smilie

after one week i will post my work here - i hope it works
# 13  
Old 12-19-2007
Quote:
Originally Posted by just student
i promise you this week i will give it to C language Smilie
Just don't put C++ style comments in C code like wrapper.h has here. Smilie
# 14  
Old 12-19-2007
i will try my best to learn the C & C++ stylesSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Signalsafe data structures

Hello, I have a signal handler which manipulates a data structure. The data structure's operations aren't atomic. So if two threads/processes are in a critical section at the same time the data structure will be broken. With threads you can avoid this stuff with semaphores etc. However,... (10 Replies)
Discussion started by: littlegnome
10 Replies

2. Programming

Passing Pointers by reference in C++ Problem

Hello All, I am having this issue...where I am actually having hard time understanding the problem: The code is as follows: #include<iostream.h> void fxn(char*** var) { int i =4; *var = (char**)malloc(i*sizeof(char*)); for(int j =0; j<4; j++) { *var = "name"; cout<<*var;... (6 Replies)
Discussion started by: mind@work
6 Replies

3. Programming

Problem With Pointers

Hi guys. What is the difference between these: 1. int *a; 2. int (*a); (2 Replies)
Discussion started by: majid.merkava
2 Replies

4. Ubuntu

pthread problem

Hi all, I wrote some code in c, using pthread (I configured the linker and compiler in eclipse IDE first). #include <pthread.h> #include "starter.h" #include "UI.h" Page* MM; Page* Disk; PCB* all_pcb_array; void* display_prompt(void *id){ printf("Hello111\n"); return... (1 Reply)
Discussion started by: elad2109
1 Replies

5. Programming

Problem with array of pointers

Hi All, I am using the array of pointers and storing the address of string.This is a global list. So i am using extern to give the reference of this list to another file and using reading the data from this string. But list is being corrupted and string is missing some characters in... (2 Replies)
Discussion started by: lovevijay03
2 Replies

6. UNIX for Dummies Questions & Answers

a pthread problem

Hello, I run my pthread code on Linux with 4 processors. However, the speed up is only 2 times. The code is about solving equation (G+s(i)C)z(i)=B*us(i), i=1,...,n. Here G,C are m*m matrix, B*us(i) is a m*1 vector and s(i) are n different numbers. I need to solve the equation n times to... (2 Replies)
Discussion started by: mgig
2 Replies

7. Linux

about system structures

hello can any1 plz tell me about the system defined structures (like sysinfo) which wil give system and n/w charecteristics (ex: freeram in sysinfo). (1 Reply)
Discussion started by: jeenat
1 Replies

8. Solaris

pthread problem

Hi all! I am working on unix systems.I am programming in c. I have got some problems with pthread.when I use pthread_create to creat a thread it says: (.text+0x3a): undefined reference to `pthread_create'. same is the problm with pthread_kill. Can anyone help me out here. Thanks. vij. (2 Replies)
Discussion started by: vijlak
2 Replies

9. Programming

Programming using Structures

Hi All, I was given a format of a file, and was asked to write a program which displays the data contained in the file in that purticular format. Its all so confusing. Please find the example of the format as well the code I have written in the attachment. I hope any one of u guyz can... (0 Replies)
Discussion started by: jazz
0 Replies

10. Programming

pointer to structures

Dear friends I have a bit basic doubts in pointers and the structures inter relationships. the first one. static struct apvt { int dead; int pending; int abouttograb; }*agents=NULL; what agents pointer is... (1 Reply)
Discussion started by: tech_voip
1 Replies
Login or Register to Ask a Question