Search:

Type: Posts; User: DeliriumCordia

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds; generated 48 minute(s) ago.

  1. Replies
    5
    Views
    1,204

    that was the issue, thanks!

    that was the issue, thanks!
  2. Replies
    5
    Views
    1,204

    hmm, maybe i explained myself in a wrong way (or...

    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*...
  3. Replies
    5
    Views
    1,204

    pointer from integer without cast

    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...
  4. Replies
    8
    Views
    1,431

    yes, what surprised me a little was to find 3...

    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...
  5. Replies
    8
    Views
    1,431

    obviously just check inside the test1, the...

    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...
  6. Replies
    8
    Views
    1,431

    i need to fork() pretty often to create...

    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...
  7. Replies
    8
    Views
    1,431

    seems no-one knows how to do it! :Dwithout...

    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...
  8. Replies
    8
    Views
    1,431

    sorry for the bad text formattation of my post,...

    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!
  9. Replies
    8
    Views
    1,431

    child process trying to use Cunit!

    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...
  10. Replies
    3
    Views
    650

    for future users facing this problem, i think i...

    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...
  11. Replies
    3
    Views
    650

    ok so it seems pretty similar to what i...

    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...
  12. Replies
    3
    Views
    650

    working with processes

    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...
  13. Replies
    18
    Views
    9,096

    I'd suggest you Box Muller transform...

    I'd suggest you Box Muller transform implementation.
    I found it very nice and easy to code, and it gives nice results.
  14. Replies
    7
    Views
    1,001

    Thank you very much, very kind :D

    Thank you very much, very kind :D
  15. Replies
    7
    Views
    1,001

    Ok, thank you very much. Another question. For...

    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...
  16. Replies
    7
    Views
    1,001

    So each time i declare a pointer it should point...

    So each time i declare a pointer it should point to NULL?

    And after i free arrays i should declare again pointer=NULL?
  17. Replies
    7
    Views
    1,001

    Memory Management

    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...
  18. Replies
    5
    Views
    1,052

    So you mean to declare all prototypes in a...

    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...
  19. Replies
    5
    Views
    1,052

    Ok, so you suggest me to divide the functions 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...
  20. Replies
    5
    Views
    1,052

    Function prototypes in the header.

    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...
  21. Thank you very much, you've been very kind :D ...

    Thank you very much, you've been very kind :D

    It can be closed if necessary.
  22. Don't care about 2nd problem. I forgot to put...

    Don't care about 2nd problem. I forgot to put function prototype on the main -.-
  23. Vector buildings and Box Muller transform

    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...
  24. Replies
    7
    Views
    6,921

    Ok I think I got it, but if I simulate a vector...

    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?
  25. Replies
    7
    Views
    6,921

    Ok thanks, it already seems pretty faster! But...

    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...
Results 1 to 25 of 59
Page 1 of 3 1 2 3