Advertising
Advertising

What Humans Can Learn from CPUs About Multitasking

What Humans Can Learn from CPUs About Multitasking

Multitasking

Nowadays, our minds and our computers are very busy, because we have more and more tasks to accomplish in the same amount of time. We are trying multitasking, but it seems human brains are simply not designed to operate that way! When you try to do two things at the same time, you know that is will not work long term, you can only focus on one thing at a time. That said, it is possible to deal with your tasks in a manner that appears simultaneous from the perspective of hours and days. This is effective multitasking, human edition.

We are now in multicore CPU era, but we can still remember the time that we had a single core CPU and yet had a multitasking environment. My old computer was able to play music, do some background calculations, and download a file from the Internet while I was writing a text at the same time. Multitasking operating system on a CPU that can do only one thing at a time: isn’t that exactly what we need? When we look how that has been achieved, there is a great lesson to be learned for humans.

Today, nearly all operating systems support preemptive multitasking, but there were early version of Microsoft Windows that were using cooperative multitasking, which didn’t work well. According to Wikipedia, “Preemptive multitasking involves the use of an interrupt mechanism which suspends the currently executing process and invokes a scheduler to determine which process should execute next.” Let us see what humans can learn about multitasking from that concept.

Advertising

Lesson 1: Task switch is costly

What happens when task switch is initiated? We need to save the context with the intention of resuming the task at a later time. Save the context, resume another task, voila! However, it is not that easy for CPUs and it is even harder for humans. Saving context takes time and also CPUs have data cache, which stores recently used data for very quick access and switching the task will need to flush some of the cache entries. It will require some additional time to put that data back into cache. You know it probably all too well—a message pops up on your desktop when you are fully focused and it sidetracks your thought process; some cache entries are gone and it will take you minutes to regain your performance level. Lesson number 1 for humans is task switches are very, very costly!

If you react to pop-ups, enter your social media “just for one minute”, and look into your e-mail inbox every minute or two, you know why your performance suffers: your brain has to constantly save and restore the context and your “cache” is never efficient.

Lesson 2: Time boxes

Preemptive operating systems use a concept of a time slice, which is the period for which a process is allowed to run. An interruption, usually coming from a clock, will initiate a task switch. If you have a PC or Mac, this is how your CPU operates most of the time! This concept works great for CPUs, but it works even better for humans: the “Pomodoro technique” is a great example of that. I set my countdown timer and focus on just one thing. It is so powerful that it revolutionized the working style of many people.

Advertising

I have all my data in very efficient cache, so my operation is very fast: I am avoiding task switches, but at the same I am sure that I will be able to accomplish all of my tasks, because my clock will tell me when to stop and/or switch. Every task switch is costly, and timeboxes are a great way to multitask effectively.

Lesson 3: Interval is carefully chosen

When using timeboxes, the main question is what intervals should I use? If it’s too short, we’ll use too much time on task switches, instead of the actual operation. When it’s too long, other tasks suffer. Can you imagine an operating system when task switch occurs every few seconds? That would be very unresponsive and annoying. The actual interval for our operating systems is usually several milliseconds.

With humans, the problem is more complex, because we are also getting tired. We cannot switch every minute, but three hours is also unrealistic; we would be very unresponsive, but also drained from energy at the same time. A good number to start with is “Pomodoro number”25 minutes—but your personal style, energy level, work demands will influence that. Experiment and see what interval works best for you. For CPUs and operating systems, that single number is one of the most important to determine whether it is going to be responsive and have a feeling of smooth multitasking.

Advertising

Lesson 4: Interrupt handling

We are constantly dealing with interruptions in our work and CPUs handle millions of interruptions as well. What makes us very different from operating systems is that their interruption handlers are usually very, very quick and they do not require a context switch. You received a phone call, you read an email, you read a short message, and you changed a tab in your browser “just to see one thing”. It was not an interruption; it was a context switch.

If we dealt with interruptions in a similar manner that CPUs, we would simply write down some information, acknowledge that we’ve received it and resume an operation. It’s just few seconds. If it was an interruption, you did not have to switch the context. Do we really need that many interruption sources?

Lesson 5: Priorities

In operating systems, tasks have their prioritieseven interruptions have them. When handling an interruption of priority X, usually all the others with priority equal to or lower than X are blocked. It is a great lesson for us, because in many cases everything is equally important (and urgent!) and this is why we can rarely accomplish anything.

Advertising

Summary

Humans are not CPUs. Our life is not about completing tasks effectively. We are spiritual beings; we have passion, emotions, relationships, and abstract thoughts. There is a great lesson that we can take from current CPUs and operating systems, however, and that is to multitask efficiently.

Try timeboxes to eliminate task switches, observe which intervals give you satisfaction and perception of effective multitasking, handle interrupts as interrupts should be handled and write down your priorities. When you think about multitasking, CPUs and operating systems are a great source of inspiration!

More by this author

Piotr Nabielec

Author, CEO, Consultant

How to Really Achieve Goals 8 Outlook Hints Everyone Should Know 7 Things Smart Learners Do Differently 10 Ways To Have Quality Sleep That You Probably Don’t Know 9 Things You Can Do To Completely Unleash Your Potentials

Trending in Productivity

1 5 Steps To Move Out Of Stagnancy In Life 2 15 Ways to Practice Positive Self-Talk for Success 3 What Is Procrastination (And the Complete Guide to Stop Procrastinating) 4 10 Best Productivity Tools to Get You More Time in 2019 5 The Secret to Success Is Failure

Read Next

Advertising
Advertising
Advertising

Last Updated on July 23, 2019

5 Steps To Move Out Of Stagnancy In Life

5 Steps To Move Out Of Stagnancy In Life

In the journey of growth, there are times when we grow and excel. We are endlessly driven and hyped up, motivated to get our goals.

Then there are times when we stagnate. We feel uninspired and unmotivated. We keep procrastinating on our plans. More often than not, we get out of a rut, only to get back into another one.

How do you know if you are stagnating? Here are some tell-tale signs:

Advertising

  • If you have been experiencing chronic procrastination on your goals
  • If you don’t ever feel like doing anything
  • If you keep turning to sleep, eating, games, mindless activities and entertainment for comfort
  • If you know you should be doing something, but yet you keep avoiding it
  • If you have not achieved anything new or significant now relative to 1 month, 2 months or 3 months ago
  • If you have a deep sense of feeling that you are living under your potential

When we face stagnation in life, it’s a sign of deeper issues. Stagnation, just like procrastination, is a symptom of a problem. It’s easy to beat ourselves over it, but this approach is not going to help. Here, I will share 5 steps to help you move out of this stagnation. They won’t magically transform your life in 1 night (such changes are never permanent because the foundations are not built), but they will help you get the momentum going and help you get back on track.

1. Realize You’re Not Alone

Everyone stagnates at some point or another. You are not alone in this and more importantly, it’s normal. In fact, it’s amazing how many of my clients actually face the same predicament, even though all of them come from different walks of life, are of different ages, and have never crossed paths. Realizing you are not alone in this will make it much easier to deal with this period. By trying to “fight it”, you’re only fighting yourself. Accept this situation, acknowledge it, and tell yourself it’s okay. That way, you can then focus on the constructive steps that will really help you.

2. Find What Inspires You

Advertising

Stagnation comes because there isn’t anything that excites you enough to take action. If you don’t have a habit of setting goals, and instead just leave yourself to daily mundanes, it’s not surprising you are experiencing stagnation. What do you want to do if there are no limitations? If you can have whatever you want, what will it be? The answers to these questions will provide the fuel that will drive you forward.

On the other hand, even if you are an experienced goal setter, there are times when the goals you set in the past lose their appeal now. It’s normal and it happens to me too. Sometimes we lose touch with our goals, since we are in a different emotional state compared to when we first set them. Sometimes our priorities change and we no longer want to work on those goals anymore. However, we don’t consciously realize this, and what happens is we procrastinate on our goals until it compounds into a serious problem. If that’s the case for you, it’s time to relook into your goals. There’s no point in pursuing goals that no longer inspire you. Trash away your old goals (or just put them aside) and ask yourself what you really want now. Then go for them.

3. Give Yourself a Break

When’s the last time you took a real break for yourself? 3 months? 6 months? 1 year? Never? Perhaps it’s time to take a time-out. Prolonged working can cause someone to become disillusioned as they lose sight of who they are and what they want.

Advertising

Go take some extended leave from work. A few days at bare minimum; a few weeks or months will be great. Some of my ex-colleagues have quit their jobs and took months out to do some self-reflection. Of course, some of us might not have that luxury, so we can stick to a few weeks of leave. Go on a trip elsewhere and get away from your work and your life. Use this chance to get a renewed perspective of life. Think about your life purpose, what you want and what you want to create for your life in the future. These are big questions that require deep thinking over them. It’s not about finding the answers at one go, but about taking the first step to finding the answers.

4. Shake up Your Routines

Being in the same environment, doing the same things over and over again and meeting the same people can make us stagnant. This is especially if the people you spend the most time with are stagnant themselves.

Change things around. Start with simple things, like taking a different route to work and eating something different for breakfast. Have your lunch with different colleagues, colleagues you never talked much with. Work in a different cubicle if your work has free and easy seating. Do something different than your usual for weekday evenings and weekends. Cultivate different habits, like exercising every day, listening to a new series of podcasts every morning to work, reading a book, etc (here’s 6 Proven Ways To Make New Habits Stick). The different contexts will give you different stimulus, which will trigger off different thoughts and actions in you.

Advertising

When I’m in a state of stagnancy, I’ll get a sense of what’s making me stagnate. Sometimes it’s the environment I’m in, sometimes it’s the people I’ve been hanging out with, sometimes it’s my lifestyle. Most of the times it’s a combination of all these. Changing them up helps to stir myself out of the stagnant mode.

5. Start with a Small Step

Stagnation also comes from being frozen in fear. Maybe you do want this certain goal, but you aren’t taking action. Are you overwhelmed by the amount of work needed? Are you afraid you will make mistakes? Is the perfectionist in you taking over and paralyzing you?

Let go of the belief that it has to be perfect. Such a belief is a bane, not a boon. It’s precisely from being open to mistakes and errors that you move forward. Break down what’s before you into very very small steps, then take those small steps, a little step at a time. I had a client who had been stagnating for a long period because he was afraid of failing. He didn’t want to make another move where he would make a mistake. However, not wanting to make a mistake has led him to do absolutely nothing for 2-3 years. On the other hand, by doing just something, you would already be making progress, whether it’s a mistake or not. Even if you make a supposed “mistake”,  you get feedback to do things differently in the next step. That’s something you would never have known if you never made a move.

More to Help You Stay Motivated

Here are some resources that will help you break out of your current phase:

Featured photo credit: Anubhav Saxena via unsplash.com

Read Next