that was the issue, thanks!
Type: Posts; User: DeliriumCordia
that was the issue, thanks!
hmm, maybe i explained myself in a wrong way (or maybe i didn't understand well what you suggested to me), but this is the def of the buffer_t struct:
typedef struct buffer {
msg_t*...
sup people, i'm making a medium project ( around 2k lines of code), and everything seems to work fine, except some warning in the compile (gcc) that tell me i'm making pointers from integer without...
yes, what surprised me a little was to find 3 asserts on the child instead of 2, like if the child process inherited old asserts from the parent.by the way finding a workaround of this kind doesn't...
obviously just check inside the test1, the remaining is just test setup.
by the way i found a strange side effect that i hardly understand. i really didn't expect the following behaviour.
if i...
i need to fork() pretty often to create producers\consumers in a concurrent program.
by the way, it's getting pretty strange: in any part of the code if i try to make asserts from within the child...
seems no-one knows how to do it! :Dwithout opening a new thread, does someone instead know how to wait for ALL children processes to exit? without status too, i need to do something like:as main...
sorry for the bad text formattation of my post, but it seems that posting deletes all kind of spacing, that's also the reason i had to make 4 different box of code!
hi guys, i'm working with processes and i find an obstacle that i can't handle, and i can't even find anything on the web regarding it.the application is a basic producer\consumer application with...
for future users facing this problem, i think i understood it:shmget actually allocates a shared memory slot of the size you want in the memory and returns an integer that identifies that segment, so...
ok so it seems pretty similar to what i understood, right?btw, here's other questions, so check if i understood shared memory handling between processes.To ask for allocation of shared memory i use...
hi guys,i'm starting to work with processes and i'm finding some problems because the manpages and the documentations i'm studying with are not very clear (or better, i can't understand them very...
I'd suggest you Box Muller transform implementation.
I found it very nice and easy to code, and it gives nice results.
Thank you very much, very kind :D
Ok, thank you very much.
Another question. For the crossCorrVect I was talking about, I create a pointer to the array that will be created in a specific function. It will point to the first...
So each time i declare a pointer it should point to NULL?
And after i free arrays i should declare again pointer=NULL?
Hi guys,
I'm a beginner in C and I need to handle memory. I have lot of arrays, most of all of pretty big size, and I'd like to know if I'm using fine the memory management.
complex...
So you mean to declare all prototypes in a header, maybe called "prototypes.h", and import it in each function? Or keeping this header just in the main function and declaring prototypes manually in...
Ok, so you suggest me to divide the functions in "logical" modules, and maybe put all the prototypes of a certain module in a specific header that will be imported only in the functions of that...
I have a pretty big project, and my main has lot of function prototypes.
Is it wrong to put the prototypes in the header file and import it in all the functions of the project? It certainly would...
Thank you very much, you've been very kind :D
It can be closed if necessary.
Don't care about 2nd problem. I forgot to put function prototype on the main -.-
Hi guys, I got 2 problems:
I need to build an array that has a function similar to a triangle. My function goes from -40 to 40 with steps of 0.002. So it has to be a 40000 elements array, made...
Ok I think I got it, but if I simulate a vector of 1000 elements, generated with that algorithm, I get a mean that is in the range [-0.05,0.05], isn't it a little big?
Ok thanks, it already seems pretty faster!
But results still are wrong. It seems nice the solution proposed by using Box Muller, but it doesn't take SNR as input, and I really don't know how to...