r/AskComputerScience • • 4h ago

Checking my understanding about threads and parsing

2 Upvotes

Hello, after countless discussion and confusion with chatGPT and seeing multiple resources about threads (or more specifically software threads), and parsing, i finally came up with a conclusion, and just wanted to see if what i'm saying "makes sense" or if i'm missing the point.

Threads are independent flow of execution, they contain necessary information for the cpu to start or resume executing a piece of code, so they represent a flow of execution of a piece of code (they can represent many flow of executions but only one at a time) and, they also represent the current state of execution of that piece of code.

Threads are used in two scenarios (afaik):

  • To not block the concerned flow of execution : basically if a specific piece of code contains a blocking or multiple blocking tasks (or in other words instructions that times alot of time to execute), when the cpu executes these tasks/or instructions that are blocking, the entire flow of execution will be blocked, following instruction will have to wait for the current one to be finished executed by the cpu, this is a problem if the entire piece of code represents something like UI logic, where instructions have to be executed as soon and as fast as possible, for the program interface to be responsive, if the flow of execution of that piece of code that is linked to a specific thread (main thread most of the time) and, represents the UI logic, is blocked, the entire program interface will be too, so it becomes unresponsive. One of the solutions is to separate that specific flow of execution of that specific blocking part of the piece of code into a separate flow of execution represented by another thread. (another solution is using asynchorny mechanism like coroutines or generators without creating threads)
  • To improve the performance: since threads most of the time will be executed concurrently (and possibly in parallel depending on the circumstances), we can separate general tasks into smaller tasks, each task can be given to a thread to improve perforamce (well it depends, since creating more threads can be the opposite, since context switching is costly and adding more threads just adds more time for a specific thread to reach its turn to be executed)

For parsing, it's a process of analysing a group of bits according to a specific format, then extracting these necessary part of the bits and storing them into their corresponding/linked variables or data structures (sometimes these group of bits are represented in another form before they are stored???? not sure)

You may wonder why i keep over repeating stuff, i have OCD especially in "defining words" as correct as possible and to be as less confusing as possible (and also i need to spit out words in a somewhat normal pace, without pauses or else it feels like i'm just remembering the words and that's it, without understanding them), i'm a bit worried the receiver won't understand a thing and i'll be embarassed (it's like i'm just saying nonsense and it feel like i don't know a thing), and most explanations of computer science terms in general are overloaded and complicated for some unexplainable reason, and also nobody seems to be in agreement of what a term exactly means, it just doesn't help at all. (for example threads are defined as execution context or unit of execution, while this may seems understandable to some, i can assure you beginners won't get a thing from this). Anyways just wanted to metion this, i know this isn't the right subreddit to "vent" but i'll just risk it.

Anyways, just wanted to see if my explanations are delusional and incorrect or not.

Thanks for reading.


r/AskComputerScience • • 6h ago

Will large language models degrade in quality over time?

6 Upvotes

LLMs were trained on data created by humans. Over time, the amount of AI-generated content will grow dramatically, so LLMs will have no choice but to learn from the data they themselves produced, which obviously (or maybe not...?) isn't as high quality as human-made data. So, will LLMs get worse over time, or do I have some gaps in my understanding of this matter?


r/AskComputerScience • • 8h ago

When do operating system behaviors begin to affect backend architecture choices?

0 Upvotes

Lately I've been digging deeper into operating system internals, particularly how scheduling behaves under load, virtual memory (paging and fragmentation), and the cost of syscalls.

I'm after something practical rather than academic:

For engineers building high-concurrency or high-throughput backend systems, at what point does OS-level behavior start to genuinely shape architectural choices?

For instance:

Have you actually seen scheduler behavior materially impact latency-sensitive services?

How often do memory fragmentation or paging patterns turn up as real production bottlenecks?

In containerized setups, how much does kernel behavior still bleed into application performance?

I'm weighing how far to go into OS internals versus spending more time on distributed systems and networking. I care less about theoretical value and more about where OS knowledge has changed real production decisions.


r/AskComputerScience • • 10h ago

I need help (books, articles, references) to clear my mind into my future masters degree topic

0 Upvotes

Hello! I am a software engineer, and since I started working this year, I realized that I would like to pursue a masters degree. But I don't know specifically which field, so I need help to find it, and I was thinking on reading about different topics so I can have a clearer view when the time comes.

On one hand I've realized that in this new era of AI models, I'm a little bit lost. I have learned how to use different tools to do my job as efficient as possible, keeping eyes on the design and foundational stuff. But for me it's a black box, I know the basic stuff, just some youtube videos. But my older team mates are training models and doing things that idk how are even built. So I am curious, and of course I don't want to stay behind.

On the other hand, I love to build systems. I am a junior, but I have a lot of freedom on my work and I have created some solutions quiet robust in terms of infra. Also I like to put effort on models and efficient processes. So designing is something that I like to do and it seems I am good at it.

So idk what to do. I think I have to create my own path, but I'm a little bit lost. Is there a way to mix this two things, or maybe there is something idk yet? do you have any book ideas to clear my mind? or any reference to start diving into this?

PD.: I understand that academia it's changing due the AI use on it and you may have several reasons why I should not pursue a masters degree. But I am pretty sure I want to do it, I like the idea of interchange ideas and participate on discussions, I think that be inmersed in that environment it's the best way to look beyond your own mental confort zone.


r/AskComputerScience • • 11h ago

DSA Landed Me a Job, Now I Want to Actually Learn Computer Science

3 Upvotes

Hey all,

I have a CS degree (graduated during COVID) and 4 years of work experience. Back in college I mostly focused on DSA, and that got me a solid job. Four years on, I've been doing well at work and growing as a software engineer.

A few days ago, while poking around some topics out of curiosity, a bunch of questions popped into my head. I couldn't answer many of them well, so I started reading blogs and listening to podcasts. To my surprise, it made me fall in love with Computer Science all over again.

A few of the questions that really grabbed me:

  1. How do high-level languages get compiled and run on different systems? (Computer Architecture)
  2. How are operating systems designed, and how do our applications talk to them? (Operating Systems)
  3. How do CPUs and GPUs actually work under the hood?
  4. How can I connect to an AWS instance running in the US with what seems like negligible latency?

These questions made me realize how many core CS concepts I missed or didn't fully appreciate in college.

Now, even though learning these topics isn't directly needed for my current job, I want to study them properly. I want to become a better engineer by understanding the foundations of computing.

Could you recommend books, YouTube playlists, courses, or other resources that helped you learn Computer Architecture, Operating Systems, Computer Networks, and similar subjects?

NOTE: This message was rephrased with AI to make it more readable, but the curiosity is genuine.


r/AskComputerScience • • 11h ago

What is the physical mechanism behind a NAND gate's operation?

3 Upvotes

I read that a NAND gate is just an AND gate with a NOT gate after it. But the way I picture that is three switches in a row on the wire, the first two being the AND gate and the last one being the NOT gate. For the bulb to light up, the first two switches would have to be on and the last one would have to be off. But then the truth table would have three columns, one for each switch, with eight possible on/off combinations (and only one of them lighting the bulb). Yet the NAND truth table I've seen doesn't have three columns or eight combinations.

Then I read that it's the output of the AND gate that gets fed into the NOT gate, which is why the NAND truth table only has two columns (one for the AND gate's result and one for the NOT gate). But it also says the NOT gate flips the AND gate's result to the opposite value (like how the bulb ends up opposite to the NOT gate's switch). I don't get this part. I thought the NOT gate was just set to on or off, and then when the current reaches it (depending on the AND gate's switches) it either passes through or doesn't (depending on the NOT gate's switch).

I'm not a computer science student, just someone learning a bit of this as a hobby. Could you explain it in a way a 12 year old could understand? Specifically, what would the switch diagram for a NAND gate look like?


r/AskComputerScience • • 13h ago

What steps could Europe take to gain tech independence from the US?

3 Upvotes

The US runs the tech world, but what would it take for Europe to break free from America?

I mean complete independence across the whole stack, from designing and manufacturing CPUs, GPUs and memory, all the way through data centers and up to operating systems and software services like search, maps, language models and so on.

What would have to be built? What could be reused from what already exists, whether from European firms or open source projects? Clearly the money involved would be enormous, but what sort of rough figure are we talking about? And how would policy and regulation work with so many different European countries involved?


r/AskComputerScience • • 13h ago

Dumb question maybe, but how much memory gets used just assigning addresses to memory?

5 Upvotes

If every byte has to have its own unique address, how is that actually kept track of? Is it just generated on the fly, or is there some equal amount of memory set aside just for producing and labeling those unique addresses?

If the addresses that already hold data aren't each stored somewhere individually, how does it avoid overwriting memory that's already in use?

And how much does ASLR affect all of this?


r/AskComputerScience • • 14h ago

Computer Science Is Evolving: What Do You Think the Future Holds?

0 Upvotes

Hi everybody!

I would like to hear other points of view from people who are researching, working or just loving Computer Science.

The technology is developing at great speed. The AI becomes more sophisticated, there are new developments in software engineering, new cyber threats appear every day, new programming tools emerge.

This raises some interesting questions:

  1. Will AI eventually replace software developers, or will it simply make programmers more productive?
  2. Is learning programming still worth it for beginners in 2026?
  3. Which programming language do you think will be most valuable over the next five years?
  4. Between cybersecurity, software engineering, data science, and AI, which field has the strongest future?
  5. What is one computer science skill every student should learn before graduating?

I'd love to hear your opinions, personal experiences, predictions, and even disagreements.

Whether you're a beginner, university student, experienced developer, or technology enthusiast, your contribution is welcome.


r/AskComputerScience • • 17h ago

Is there a reputable mathematician or computer scientist who believes P = NP is more likely than the opposite?

36 Upvotes

I've been reading about the P vs NP problem lately, and the sources I've found agree that most experts expect P ≠ NP. Are there any reputable mathematicians or computer scientists who believe otherwise?


r/AskComputerScience • • 1d ago

How do you know when a graph algorithm is O(n + e), O(e), O(n), or O(ne)?

0 Upvotes

I want to understand the reasoning behind these time complexities, not just example algorithms.

I have a hard time grasping the time complexities of graph algorithms. They are really difficult to picture.


r/AskComputerScience • • 1d ago

Is this quotient law for computational entropy genuinely new or important in theoretical computer science?

0 Upvotes

I've been working on a mathematical research paper called Coronal Foundations: The Quotient Law of One-Pass Group Computation, and I'm interested in an assessment from researchers in theoretical computer science and information theory.

Ξ-Coronal Foundations: The Quotient Law of One-Pass Group Computation - A Structural Theory of Computational Information, Sharp Entropy-Accuracy Frontiers, and Fundamental Limits of Algebraically Constrained Artificial Intelligence | Zenodo


r/AskComputerScience • • 1d ago

Como funssiona o mundo binario?

0 Upvotes

eu sempre tive curiosidade de fazer codigos mais me falaram que por trais disso está o codigo binario como ele atua?


r/AskComputerScience • • 2d ago

Is it just me, or is using AI to 'detect' AI-written papers fundamentally broken?

15 Upvotes

First off, given how quickly modern tech is changing these days, do whatever you like with it.

Now for my complaint. Using AI to detect whether AI was used is a broken approach. It will always claim AI was involved. For instance, I watched my wife type out a whole essay by hand for a college class, and it got flagged as AI-written! I saw with my own two eyes her fingers moving across the keyboard. I'm angry for her sake.

Apparently a clear, well-organized paper that's easy to read now counts as AI.


r/AskComputerScience • • 2d ago

Python

0 Upvotes

Can we learn dsa in python?


r/AskComputerScience • • 2d ago

Where can I find resources to learn what a computer is?

24 Upvotes

Sorry if this is off topic, but can anyone suggest resources to help me better grasp the definition of "computer" and what makes a device a computer or not? What are the different types of computers, etc.? I haven't started studying CS on my own yet, so I don't know if these "surface questions" will be covered at the beginning or not.


r/AskComputerScience • • 4d ago

Does majoring in computer science actually pay off?

0 Upvotes

As a ninth grader, I keep seeing videos online saying "the job market is cooked" and "CS isn't worth it anymore." I've always loved coding ever since I discovered it, and I just want to know if it's something I should pursue. Also, any advice you all have about CS would be greatly appreciated.


r/AskComputerScience • • 4d ago

How would you explain what AI superintelligence is to a non-technical person?

0 Upvotes

Some are envisioning that superintelligence will arrive in 2027. What is that?


r/AskComputerScience • • 4d ago

As on 2026, what backend language do you think is the most demanding?

0 Upvotes

I am curious which backend language is most demanding and is used the most ?

Java /springboot? Python?

.net? Which one?

I think java is the most demanding but if someone asks you which backend language to explore in 2026 then which one will you suggest and why?


r/AskComputerScience • • 4d ago

CS

1 Upvotes

I’m currently studying at a medical university, but I want to switch to Computer Science. Please tell me what students study in this field (you could break it down by courses—what they study—since in medical school I’m used to learning everything gradually).


r/AskComputerScience • • 4d ago

What is the first thing loaded into RAM when a computer boots up?

98 Upvotes

An hour ago my class teacher asked, "What gets loaded into RAM first when a computer starts?" One guy said it was the operating system, and my teacher said that was right. But I figured it would be UEFI that gets loaded into RAM first. So I asked my teacher, and she said that wasn't true because UEFI is firmware in the computer. That still didn't convince me. I'd really appreciate it if you could answer my questions about what gets loaded into RAM first when the computer starts


r/AskComputerScience • • 5d ago

Confusing lingo

0 Upvotes

I have been hearing tools , and cs lingos being used by my peers that i have never even heard of.

I cant even understand what umbrella of CS those terms belong in

how to actually get to know these terms?

It's there a course to start by? A project that may help?

Please mention


r/AskComputerScience • • 5d ago

AI Researchers of Reddit

0 Upvotes

In light of recent events, what is your timeline for Recursive Self Improvement and AGI?

Are we far from it or the breakthroughs of this year changed your timeline?

And why CEOs say wr sre 1-2 years away but surveys like LEAP state 50% change by 2050? Why this disparity?


r/AskComputerScience • • 7d ago

Question about college.

2 Upvotes

I just learned that me cs degree doesn’t extend to cpp though I want to become a gamedev and cpp it’s kinda necessary. My program will focus on Java, JavaScript, python amd I’mkinda disappointed to learn that we won’t touch cpp those 3 years. I’m kinda disappointed cause I guess there was some miscommunication when I specifically asked the admissions about the program they told me cpp it’s in it. Now they say cpp it’s not in the program at all and I’m freaking out. Is it actually that bad idk.