Thanks Dave for catching that...
That doesn't begin to solve what doesn't work with that damn program!!!
Type: Posts; User: Lau
Thanks Dave for catching that...
That doesn't begin to solve what doesn't work with that damn program!!!
well, the seg fault is gone... but it's not working correctly! I'm gonna go bang my head on the wall for a while. Doubt that'll help, but who knows:rolleyes:
Salem,
so basically, what we have to do is simulates an operating system, that created five user thread and a memory management unit (i'm not even here yet)
We have to implement a round robin...
I have it declared once and only once. This error didn't come up before I wrote in the maloc part, that's why I'm confused
stdlib.h is in there and has been...
yep... I just forgot that,...
oopsy... yes, there's an ampersand missing, and it's not voluntary
what do you mean?
I did allocate the memory... didn't I?
ah crap.. no I didn't!!...
estranged,
doraiashok is right here. Basically, the only way you can get out of the loop the way you set it would be for gameCh to be equal to 1, 2, 3 and 4.... quite impossible!
I personally use gcc, and, even though I have no experience with any other, I think it's a good compiler!!
Go with it... :D
Hi people!!
I know this is short notice, but I've had this segmentation fault on a pthread_mutex_init (I'm almot 100% that's where it is), and I can't figure out why.
in a header.h, I have
...
Go it Walt!!
Thanks
Thank you Salem!!
I actually works... :o)
So, my porblem is fixed.
But I still don't understand why the printf gave me a blank line before (??)
-----------
I found a littel flaw in this code...
Quzah,
But if I go from the front to the back, I will have "processed" the character that I want to delete.
The '/' is supposed to mean that both itself, and the preceding character will be...
Ok people.. this is getting aggravated, and, even though I'm sure it's something very stupid, I can't figure out why this string isn't getting printed.
The little piece of code is supposed to go...
I am wondering something again:
is it ok to call pthread_join() from a start function?
I was going to use global variables!
Actually, I do have another question: would you recommend creating new threads from a 'start' function?
The assignment I have to do requires me to pass a...
oh! That makes sense! :rolleyes:
Thanks again
No more questions :D
Thank Quzah...
Now, I'm guessing you can't pass more than that one argument to the start function. The only way to pass more than one would be to create global variables. Am I right?
Is there...
Hello everyone!
I just started working on threads, and I'm having trouble understanding the last argument passed to pthread_create().
What is the void * arg?
Does that mean I can pass a...
fgets() atumatically reads the next line
use something like
while (fgets(..) != NULL) {
...
}
samps005,
I started reading this tutorial... It's taking me a lot of time, but I'm starting to get it... slooooowly :D
Thanks Xei... I'll do that!!
Thank you all for the ressources... I guess I'm going to have a lot of reading to do ;-)
Hi everybody,
here's the problem: this is my first networking class, and our project is to develop an FTP client... I am just clueless!!!
I have never done any network programming before, and...
Ok, I got that!! thanks!!
Monkey_C:
when I get into that function, it prints "enter employee ID No", and when I enter a number I doesn't do the rest => asking for the last name, first name, etc. It just creates a blanck...
Once again, Monster and moi:
I don't know what I was doing there!! the fscanf() and fputs() are gone... :D