Skip to main content

Questions tagged [io]

Input/Output of data to/from a system. This usually implies file storage or network communication, but may also mean interaction with a user through a user interface.

3 votes
2 answers
250 views

How to structuring a read/write submodule in OOP Python

I am developing a python package that needs to be able to read/write from/to multiple formats. E.g. foo format and bar format. I am trying to contain the functions relating to each format in a single ...
Luce's user avatar
  • 139
0 votes
2 answers
302 views

What should I consider when determining what `ALLOC_MAX` should be in this type of I/O loop?

For, e.g. determining an amount of memory that is safe to allocate for processing file or device with this type of I/O loop: HANDLE hFile /* = file open with GENERIC_READ */; LARGE_INTEGER liSize; ...
Govind Parmar's user avatar
1 vote
1 answer
399 views

What does it mean to be "truly" asynchronous?

Reading the Proactor pattern paper, specifically this part: I/O Completion Ports in Windows NT: The Windows NT operating system implements the Proactor pattern. Various Asynchronous Operations such ...
codefast's user avatar
  • 179
4 votes
10 answers
4k views

Can multi-threading improve performance of an IO-bound process?

I am trying to understand the difference between CPU Bound vs IO Bound process. ChatGPT suggested that multi-threading/parallel processing can help a CPU bound process; However, I think that having ...
Sahil's user avatar
  • 199
0 votes
1 answer
91 views

Handling IO operations through a server and building the UI using a separate framework/application

I am trying to build a file editor, and I wanted to build the UI using Flutter. However I wanted to implement IO operations (reading a file, applying changes, etc) in Rust. The reason I would like to ...
Fabrizio's user avatar
  • 115
3 votes
3 answers
922 views

File I/O - How HDD or SSD works with OS file system? [closed]

I've studied how data transfer with secondary storage(HDD or SSD) works. Would you mind to check that my understanding is correct? File system block is basic read/write logical unit which is used in ...
obanadingyo's user avatar
2 votes
2 answers
256 views

Operating systems - whose responsibility is it to coordinate process I/O requests?

I am reading Tanenbaum's Modern Operating Systems. I want to understand a particular concept regarding processes and blocking system calls, specifically with regards to I/O. I assume threads might ...
Stefan Rendevski's user avatar
0 votes
2 answers
1k views

How does a process know the location of another's stdout, stderr, stdin? [closed]

I want to know how standard I/O channels are handled in more depth. Processes have their own stdout, stderr, stdin channels where they can read/write. As far as I know, these are stored as temporary ...
66Gramms's user avatar
  • 129
1 vote
1 answer
1k views

Is Epoll/Multiplexing suitable to make network requests instead of "listen to" incoming requests?

I'm studying asynchronous IO, concurrent models for IO and how things works on windows, linux and most used web frameworks. I'm struggling on understanding why single-threaded event loops like the one ...
Mattias Santoro's user avatar
0 votes
1 answer
346 views

Is background long running thread a good choice for disk IO?

I am building a storage engine software that allows concurrent data writing, now I have two different choices here: Method 1. Background Long-Running Thread Multiple user threads write to their own ...
WoooHaaaa's user avatar
  • 101
7 votes
3 answers
2k views

Best way to reduce database writes?

I couldn't find a similar enough thread, so i'm making a new one. My question is about reducing database writes. Context is that I have an application which increments a number in a database every ...
Epic Speedy's user avatar
3 votes
5 answers
784 views

Applying function to file line by line or read entirely into structure first?

I've often found myself with the need to develop tools that process large files over a network and perform an operation to every element in that file. An element may be an individual line or an object ...
pstatix's user avatar
  • 1,047
2 votes
1 answer
244 views

Are streams of binary data considered a form of bit banging?

Are streams of binary data considered a form of bit banging? Does this definition change if the array is buffered? I am referring software which handles binary data on a general purpose CPU; for ...
Zhro's user avatar
  • 191
0 votes
1 answer
349 views

What Actually Indicates the end of a Socket Input/Output feed?

In the most abstract, platform agnostic way possible, can someone explain what actually determines the end of input/output a socket? Is this something the programming language itself typically handles ...
gabriel.hayes's user avatar
0 votes
2 answers
602 views

Can a C# AnonymousPipeServerStream create a non .NET client?

For example, if I want to write a daemon program in C# that uses anonymous pipes to communicate with programs written in another language, is this both possible and feasible? I ask because I intend ...
gabriel.hayes's user avatar

15 30 50 per page
1
2 3 4 5
7