LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-14-2016, 07:15 PM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941

"Actually, be careful(!)" when you talk about things such as "sprites!"

"Sprites," after all, are really 'things' that are 'owned' by a single physical resource: "a video display," and therefore also the entire arcane and perhaps-unknown-to-you shared data structures(!) that are behind-the-scenes involved in managing them.

Therefore, you might easily find yourself running into timing dependencies, race conditions, and other very-unpleasant things which have not been properly considered in your application's parallelism model.
 
Old 12-24-2016, 06:17 PM   #17
DeeDeeK
Member
 
Registered: Jan 2016
Distribution: Ubuntu 14.04
Posts: 37

Rep: Reputation: Disabled
sprites, new thread about condition variables

Since we are now are far afield from the initial question re. matrix multiplication, threading, etc., I started a new thread with some questions I have about using those condition variables I'd hesitated considering. Because I was too quick in dismissing the idea.

They work great as far as I am able to get them to work at all.

As far as the 'sprites' go, you'd have to know how they're implemented to make a clear statement about what kind of resource they are, if they are, or to know what timing issues might be at issue.

Since my code is getting them on the screen where they belong, when they belong, without flickering or other troublesome artifacting, I'm satisfied. I've got cycling and all sorts of other things worked out in a thread safe manner. I could include some of the code in my next post to the following thead.

http://www.linuxquestions.org/questi...ry-4175595809/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Pthreads]Usage of Conditions Variables with Pthreads Aquarius_Girl Programming 2 01-14-2013 05:40 AM
pthreads manaila Linux - Newbie 1 07-01-2011 11:59 AM
Pthreads christheavatar Programming 4 03-05-2005 09:30 PM
pthreads ftgow Linux - Software 0 07-08-2004 03:55 AM
pthreads socket9001 Programming 2 12-29-2003 12:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration