Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: memory

Arrays

passing a 2d-array to a function in c language, what is the difference between int* b[4] and int b[][4]?

admin March 21, 2021

I am trying to shift the rows of a 2-dimensional array: #include #include void shift_to_left(int* b[4], int* new_col){ for(size_t i=0; i<1; i++) memcpy(*(b+i+...

arrayscmemorypointers
Linux

Will there be serious performance degradation when using multiple threads to write to memory concurrently on Linux?

admin March 15, 2021

I wrote a multi-thread today. The task of the thread is to write data to a large array. A single thread takes about 0.7s, but it takes more than 20 seconds to write independently and concurrently with …

clinuxmemorymultithreading
Linux

How does OS kernel get notified when memory is accessed?

admin March 6, 2021

As far as I know, OS kernel maintains the translation from virtual address to physical address, and the userspace program uses virtual address, the CPU uses physical address. Since all machine codes …

kernellinuxmemoryoperating-system
Windows

8GB of ram working normally with 7.9 usable, then one day only 7.4 were usable, what happened?

admin January 7, 2021

I had a laptop with 4GB of ram, putted another 4GB for 8GB the laptop was saying 7.9GB usable, pretty normal and expected. One day when I turned it on (4 to 6 months later), only 7.4 were usable. Did …

laptopmemorywindowswindows-10
Linux

What would be a good algorithm for patching binary files on linux

admin January 2, 2021

I am trying to reduce data transfer to my embedded linux device by creating patches for almost similar binaries. I have memory constraints on my device and hence heavy algorithms like bsdiff and …

embedded-linuxlinuxmemorypatchshell
Arrays

How to pair matrices that are approximately the same in another numpy array

admin December 9, 2020

Background I have the following code that works like a charm and is used to make pairs for a Siamese network: def make_pairs(images, labels): # initialize two empty lists to hold the (image, image) …

arraysmemorynumpypythonsiamese-network
Arrays

Dynamically allocating memory to an array and reading a large text file

admin August 11, 2020

I’ve had a look at some other similar questions and examples but I’m stumped. My goal is to open a very large text file (novel sized), allocate memory to an array, and then store the text into that …

arrayscdynamicmemory
Windows

How is default page-file size actually calculated by Windows?

admin July 26, 2020

I want to know how does Windows calculate default page file size. For example, for 48 GB RAM it shows 7168 MB page file size.

memorypagefilewindows
Arrays

For memory, what should be done when you need to constantly grow a vector to an unknown upper limit?

admin July 21, 2020

Suppose that you are dealing with a potentially infinite amount of data. Suppose further that you do not have this data stored in memory, but can generate individual terms at will. Finally, suppose …

arraysmemoryr
Windows

Page faults not available in process explorer

admin April 28, 2020

In this answer (sencond part/process explorer): https://superuser.com/a/1270689/1160187 it’s suggested that page faults can be viewed per process in process explorer. But in my case, I don’t have …

memorywindows

Posts navigation

1 2 … 12 Next
Privacy Policy