real-time

Running a repeating task in background on a real time application

[亡魂溺海] 提交于 2019-12-19 11:17:43
问题 I'm writing an application which is continuously listening and checking the sensors (almost all available) and saving that data into the database in the device. I need to make some calculations every X second with that data and throw a new event if the calculations check says so. I'm thinking about requesting to have the device plugged in while using the application (regarding battery drain). What's the best approach for the task that needs to make the calculations and throw the event? Timer?

Forever Frame comet technique?

最后都变了- 提交于 2019-12-19 08:18:47
问题 Can someone please explain me how the "Forever Frame" technique works ? A code example would be awesome! I went through all the material i could find in Google but i still don`t have much of an idea how it works. 回答1: Dylan Schiemann gives a great explanation. In short, it uses "chunked encoding", a feature of HTTP/1.1 intended for an entirely different purpose, but which allows the server to maintain a connection to the client indefinitely, sending additional data to the client at will. As

Forever Frame comet technique?

心已入冬 提交于 2019-12-19 08:18:07
问题 Can someone please explain me how the "Forever Frame" technique works ? A code example would be awesome! I went through all the material i could find in Google but i still don`t have much of an idea how it works. 回答1: Dylan Schiemann gives a great explanation. In short, it uses "chunked encoding", a feature of HTTP/1.1 intended for an entirely different purpose, but which allows the server to maintain a connection to the client indefinitely, sending additional data to the client at will. As

Networking with Kernel Bypass in Java [closed]

孤街醉人 提交于 2019-12-19 03:11:14
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Has anyone figured it out how to do Kernel bypass in Java? Any hello world somewhere or this is rocket science? 回答1: If you are using solarflare, you can use their API to do kernel bypass (I am not using it

Networking with Kernel Bypass in Java [closed]

我是研究僧i 提交于 2019-12-19 03:10:51
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Has anyone figured it out how to do Kernel bypass in Java? Any hello world somewhere or this is rocket science? 回答1: If you are using solarflare, you can use their API to do kernel bypass (I am not using it

Faster plotting of real time audio signal

一世执手 提交于 2019-12-18 18:04:25
问题 I have a piece of code that takes real time audio signal from audio jack of my laptop and plots its graph after some basic filtering. The problem I am facing is that the real time plotting is getting slower and slower as the program is running ahead. Any suggestions to make this plotting faster and proceed at constant rate?? I think animation function will make it faster but was not able to formulate according to my requirement import pyaudio import numpy as np import time import matplotlib

Send user ID from browser to websocket server while opening connection

我只是一个虾纸丫 提交于 2019-12-18 17:29:44
问题 Before asking this question, I did my best by reading severel questions on SO (tagged Ratchet and dealing with similar issues but to no avail. I even asked a question which received no attention and I therefore deleted it to write another one (that hopefully is more clear). My final goal is to build a one-to-one private chat application using Ratchet. Everything is working fine except that I can't send message to a specific user. Every logged in user connects to the websocket server while

How to avoid garbage collection in real time .NET application?

十年热恋 提交于 2019-12-18 15:32:30
问题 I'm writting a financial C# application which receive messages from the network, translate them into different object according to the message type and finaly apply the application business logic on them. The point is that after the business logic is applied, I'm very sure I will never need this instance again. Rather than to wait for the garbage collector to free them, I'd like to explicitly "delete" them. Is there a better way to do so in C#, should I use a pool of object to reuse always

How to avoid garbage collection in real time .NET application?

限于喜欢 提交于 2019-12-18 15:32:02
问题 I'm writting a financial C# application which receive messages from the network, translate them into different object according to the message type and finaly apply the application business logic on them. The point is that after the business logic is applied, I'm very sure I will never need this instance again. Rather than to wait for the garbage collector to free them, I'd like to explicitly "delete" them. Is there a better way to do so in C#, should I use a pool of object to reuse always

How about Haskell's GC performance for soft realtime application like games?

寵の児 提交于 2019-12-18 14:01:04
问题 Because I realized game rule logic should handle huge complexity, I'm considering using of non-typical language in game field as in-game logic script language. The reason of in-game script is representing complex logic with less code. So extremely well abstracted language required. But most well-abstracted languages use GC. And normally the GCs make CPU burst load. Basically it defers clearing memory operation, and do it at once. Really critical to realtime graphics including games and GUI.