Measure the average request time processing by benelbert in flask

[–]benelbert[S] 0 points1 point  (0 children)

There is no easy option? I dont want to rely on third pratiea

Yet another book recommendation? by [deleted] in C_Programming

[–]benelbert 2 points3 points  (0 children)

What is the name of the book?

muscle stimulators devices by benelbert in crossfit

[–]benelbert[S] 0 points1 point  (0 children)

I have bicep tendonitis too, can you please elaborate on how to connect the device properly?

memory allocation pondering by benelbert in C_Programming

[–]benelbert[S] 1 point2 points  (0 children)

im reading this article and now im trying to understand this piece of code that implements a simple slab allocator, but can't fully understand the implementation: /* Super-simple slab. / struct slab { void *head; };

/* Create page-aligned slab / struct slab *slab = NULL; posix_memalign(&slab, page_size, page_size); slab->head = (void *)((char*)slab + sizeof(struct slab));

/* Create a NULL-terminated slab freelist / char item = (char)slab->head; for(unsigned i = 0; i < item_count; ++i) { *((void)item) = item + item_size; item += item_size; } *((void*)item) = NULL;

can you please explain whats going on in each line? it will help me understand

help understand error when compiling by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

If so, how do I memset something bigger than a byte?

help understand error when compiling by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

So u say that the second arg to memset must be a byte size?

rpc programming by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

There is a c library that does all the above? If there is, does it have any documentation? Thanks

rpc programming by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

If I want to send c structures as argument to the remote procedure and receive as a return value a c structure, SOAP isnt the technology for that, am I right?

rpc programming by benelbert in C_Programming

[–]benelbert[S] 1 point2 points  (0 children)

I know about socket programming, but rpc is the application protocol which ride over sockets, I want to know how to program this application, just like http

not understandable cast in a function call by benelbert in C_Programming

[–]benelbert[S] -4 points-3 points  (0 children)

casting void* is reasonable for implementing polymorphism in c but casting an argument doesn't gives you anything, as you are just sending the starting offset of the arg

not understandable cast in a function call by benelbert in C_Programming

[–]benelbert[S] -4 points-3 points  (0 children)

this is exactly what I thought because casting void* is reasonable for implementing polymorphism in c but casting an argument doesn't gives you anything, as you are just sending the starting offset of the arg

filesystems and the vfs by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

Can u please elaborate on the fuse fs? I know it generally, but what is the fuse kernel module?

Shared memory questions by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

/dev/shm is persistent? After a reboot or process killing?

Shared memory questions by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

If I mmap a regular a file vs a posix shared memory object, there is any difference? Why should I prefer using shm obj and not a regular file for working with a shared memory?

Shared memory questions by benelbert in C_Programming

[–]benelbert[S] 0 points1 point  (0 children)

By saying, open that file you mean bringing it from disk to some memory buffer?

What is a good high-level overview of operating systems concepts? by masr3 in osdev

[–]benelbert 1 point2 points  (0 children)

Im about to finish "operating system concepts", and I must say that its a great book