Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,574 Views

Multithread Java coding on the Intel Atom

Jump to solution

II just started to learn multithreading and I am wondering how efficiently thread synchonization on a Java program would handled, since it runs on the JVM and at lower level interrupt handling is managed OS scheduler if I understand correctly.

The Edison's http://http//ark.intel.com/products/70101/Intel-Atom-Processor-Z2560-1M-Cache-1_60-GHz Atom processor supports two threads per core, so it is a four-threaded processor as it is stated on its datasheet. On the other hand, http://techreport.com/review/24767/the-next-atom-intel-silvermont-architecture-revealed apparently Silvermont family processors, support one thread per core http://www.anandtech.com/show/6936/intels-silvermont-architecture-revealed-getting-serious-about-mob... on behalf of dealing with out-of-order execution.

In general terms, I would like to ask your opinion about running multiple threads on a JVM on the Intel Edison. For example, to make similtaneous use of UART, WIFI, GPIO.. for "soft" scheduling.

Regards


Accepted Solutions
Highlighted
Community Manager
37 Views

Hi

 

 

I've never tested multithreading on a JVM so it's hard to tell how efficient it'll be if compared to other programs.

 

 

In general, multithreading works on the Edison but, there are some considerations to take. For example, if you're using simultaneously UART, WIFI or GPIOs as stated in your thread, make sure that there aren't conflicts on the resources used by each of these threads. There could be processes that require resources used in another thread causing the communication to fail.

 

 

Sergio

 

View solution in original post

4 Replies
Highlighted
Community Manager
38 Views

Hi

 

 

I've never tested multithreading on a JVM so it's hard to tell how efficient it'll be if compared to other programs.

 

 

In general, multithreading works on the Edison but, there are some considerations to take. For example, if you're using simultaneously UART, WIFI or GPIOs as stated in your thread, make sure that there aren't conflicts on the resources used by each of these threads. There could be processes that require resources used in another thread causing the communication to fail.

 

 

Sergio

 

View solution in original post

Highlighted
Community Manager
37 Views

Hi TonyMontes,

 

 

Did you found our previous suggestion helpful, do you still need help with this thread?

 

 

Sergio

 

Highlighted
New Contributor I
37 Views

Thank you Sergio, I guess that as a computer that the Intel Edison is, programming on Java threads does not differ from programming on a PC. I am using XBee for sending and receiving data during the execution of my program, I wonder if it would be possible to use the onboard MCU somehow to generate an interrupt when data arrives to the XBee during the executing of the Java code.

0 Kudos
Highlighted
Community Manager
37 Views

Yes, it should be possible to generate interruptions on the MCU. You can see more information on interrupts here https://software.intel.com/en-us/node/557354# Registering_an_interrupt_handler_to_a_GPIO_port https://software.intel.com/en-us/node/557354# Registering_an_interrupt_handler_to_a_GPIO_port

 

 

Sergio

 

0 Kudos