2418 views|12 replies

3232

Posts

0

Resources
The OP
 

FreeRTOS, Linux, Windows [Copy link]

 
 

FreeRTOS, Linux, Windows

1. What are the differences between FreeRTOS, Linux, and Windows? Do they all have the same goals? They are all "systems" that facilitate multi-tasking and multi-threading development?
2. FreeRTOS is based on microcontrollers, Linux is based on Android motherboards, and Windons is based on X86 computer motherboards. Is this correct?
3. How to implement multiple tasks sharing a memory segment in FreeRTOS?

Latest reply

It sounds difficult, but it is actually much simpler than "run time statistics"   Details Published on 2023-4-25 01:32
 

1127

Posts

17

Resources
2
 
Shared memory can be done with global variables. Ordinary computer CPUs can run FreeRTOS as long as the values are properly transferred. Of course, no one does this.
 
 
 

6822

Posts

11

Resources
3
 

The big guy above, have you tried running freertos on x86? Then the old motherboard can be used for fun.

 
 
 

6748

Posts

2

Resources
4
 

[3. How to implement multiple tasks sharing a memory segment in FreeRTOS?] Tasks cannot share the same memory. Sharing will directly cause errors. Sharing a variable is fine. You can directly define it as a global variable.

 
 
 

6063

Posts

4

Resources
5
 

Freertos tasks share a static memory and need to use a mutex

Lock and protect data, and unlock after operation.

If there is enough memory, the method of communication between tasks can solve the data exchange problem.

Comments

Using mutexes to lock and protect data sounds difficult  Details Published on 2023-3-10 16:47
 
 
 

3232

Posts

0

Resources
6
 
damiaa posted on 2023-3-9 15:02 FreeRTOS tasks share a static memory. Use mutex to lock and protect data. Unlock after the operation. If...

To use a mutex

Locking data to protect it - sounds hard

Comments

Still have to try it.  Details Published on 2023-4-25 01:32
Still have to try it.  Details Published on 2023-3-13 09:36
 
 
 

4817

Posts

4

Resources
7
 

In FreeRTOS, multiple tasks can share a memory segment by using mechanisms such as shared memory or message queues.

 
 
 

4817

Posts

4

Resources
8
 

FreeRTOS, Linux, and Windows are three different operating systems. They have the following differences:

  1. Different design goals FreeRTOS is a real-time operating system, mainly used in resource-constrained environments such as embedded systems. Linux is a general-purpose operating system, mainly used in environments such as servers and desktop computers. Windows is a desktop operating system, mainly used in environments such as personal computers and servers.
  2. Different kernel structures FreeRTOS is a microkernel operating system that only contains the most basic operating system functions, and the rest of the functions are expanded in a modular way. Linux is a single-kernel operating system, and all operating system functions are implemented in the kernel. Windows is a hybrid kernel operating system that contains both single-kernel and microkernel structures.
  3. Different memory management: FreeRTOS is an embedded operating system with simpler memory management, usually using static memory allocation. Linux and Windows are general-purpose operating systems with more complex memory management, supporting dynamic memory management and virtual memory.
  4. Different task scheduling methods FreeRTOS is a real-time operating system with high real-time and predictability in task scheduling. It adopts preemptive scheduling. Linux and Windows use time slice round-robin scheduling, which is usually used in non-real-time systems such as desktops or servers.
  5. Different open source agreements FreeRTOS uses the MIT open source agreement and can be used and modified for free. Linux uses the GPL open source agreement and can be used, modified and distributed for free, but the source code for the modified code must be made public. Windows is closed source software and requires the purchase of a license. In short, FreeRTOS, Linux, and Windows are different types of operating systems, suitable for different scenarios and needs, and developers need to choose to use them according to specific circumstances.
 
 
 

4817

Posts

4

Resources
9
 

Using the characteristics of Windows, for industrial computers with X86 architecture, this is the largest user group. The application of Windows, the application and software development of more technicians, make the software of PC extremely rich. The functions of PC are already very powerful. CAD/CAM software has been transplanted from minicomputers and workstations to PCs in large quantities, and 3D graphics display process data has been established on PCs.

The characteristic of industrial computers with Linux system is that they do not have a friendly graphical interface, but the system stability and security are higher than Windows system. Linux is not only a stable system, but also an open source software. Its core firewall component has high performance and simple configuration, which ensures the security of the system. In many enterprise networks, in pursuit of speed and security, Linux is not only used as a server by network operators, but also as a network firewall, which is a highlight of Linux. Moreover, Linux is open source and free, and there are various versions of Linux. Commonly used Linux systems for industrial computers include Ubuntu, CentOS, Redhat, etc.


Industrial computers with Android systems have low power consumption, but their processing performance is not as good as those with Windows systems. If some application scenarios are single, the processor requirements are not high, and the company has the ability to develop related software based on Android, Android will be the first choice for many capable customers.

 
 
 

6063

Posts

4

Resources
10
 
QWE4562009 posted on 2023-3-10 16:47 To use a mutex to lock and protect data - it sounds difficult

Still have to try it.

 
 
 

46

Posts

0

Resources
11
 

FreeRTOS is mainly used in resource-constrained environments such as embedded systems. Linux is mainly used in environments such as servers and personal computers. Windows is mainly used in personal computers.


Comments

Now the performance of STM32 is very strong, but compared with STM32 products more than ten years ago, it is still not comparable to PC.  Details Published on 2023-4-1 22:19
 
 
 

224

Posts

0

Resources
12
 
no814987 Published on 2023-3-24 05:00 FreeRTOS is mainly used in resource-constrained environments such as embedded systems. Linux is mainly used in servers, personal computers and other environments. Windows is mainly used...

Now the performance of STM32 is very strong, compared with STM32 products more than ten years ago

Of course, it still can't compare with PC.

 
 
 

224

Posts

0

Resources
13
 
QWE4562009 posted on 2023-3-10 16:47 To use a mutex to lock and protect data - it sounds difficult

It sounds difficult, but it is actually much simpler than "run time statistics"

 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Such an honest manufacturer is rare.

As shown in the picture, a promotional picture of a mobile phone 452771

Kelvin resistor and resistance measurement

This post was last edited by bigbat on 2020-4-11 15:54 Kelvin resistance measurement Suppose we want to measure the res ...

New application technologies in the Internet of Vehicles bring the required buffering to process the collection and transmission of information

The Internet of Vehicles (IoV) is the specific manifestation of the Internet of Things in the field of transportation. T ...

Sorting out the msp430f149 port functions and settings

The commonly used ports of MSP430f149 are P1, P2, P3, P4, P5, and P6, which can be used directly for input/output. There ...

About the addition, subtraction, multiplication and division of double data on 51

This post was last edited by ena on 2021-12-6 11:44 In the past, the addition, subtraction, multiplication and division ...

37 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (VSCode Debugging ROS)

This post was last edited by lb8820265 on 2022-5-10 00:27 I have introduced VSCode debugging before , which is GDB deb ...

DC-DC boost to 5V abnormal

My boost circuit diagram is as follows: 608263 My BAT input is three AA batteries, and the DC-DC boost chip used is PT13 ...

View circuit - load switch

In many circuits, one power supply may correspond to multiple loads. Sometimes the power supply of the load needs to be ...

My own feelings about simulation software

The most annoying thing about using LTspice is that it does not support mixed analog and digital simulation. Although it ...

[Evaluation and experience of Zhongke Yihaiwei EQ6HL45 development platform] +06. Expansion interface-DAC test (zmj)

This post was last edited by Qing Xiaoxiao on 2022-11-14 19:39 Zhongke Yihaiwei EQ6HL45 development platform evaluation ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list